What are the Slack Archives?

It’s a history of our time together in the Slack Community! There’s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.

Because this space is not active, you won’t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..

Hey.. we have a lot of orders sitting in `3d secure verification`, is there a way to add a timeout t

UPDQFGGM9
UPDQFGGM9 Posts: 29 🧑🏻‍🚀 - Cadet
edited October 2019 in Help

Hey.. we have a lot of orders sitting in 3d secure verification, is there a way to add a timeout to the OMS which allows us to change the order state to invalid of past orders or do we need to change the state manually?

Additionally we wonder if that causes the oms:check-condition task to run into a memory leak. At one point the process tried to allocate over 4G memory, which doesn’t seem right. Does anything else affect this task ?

Comments

  • Ievgen Varava
    Ievgen Varava Sprykee Posts: 154 🧑🏻‍🚀 - Cadet
    edited October 2019

    I presume you're talking about one of payment provider integrations with out-of-the-box OMS state machine? Usually it's meant to be customized to project needs, so any additional states and timeouts are totally possible to add.

  • Andriy Netseplyayev
    Andriy Netseplyayev Sprykee Posts: 519 🧑🏻‍🚀 - Cadet
    edited October 2019

    oms:check-condition task to run into a memory leak

    if you have heavy queries in your conditions, and a lot of order items “stuck” in there - you can run out of memory

  • UPDQFGGM9
    UPDQFGGM9 Posts: 29 🧑🏻‍🚀 - Cadet

    Okay. Would it be possible to change the OMS and apply it to past orders to get them into a different state?

  • Andriy Netseplyayev
    Andriy Netseplyayev Sprykee Posts: 519 🧑🏻‍🚀 - Cadet
    edited October 2019

    @UPDQFGGM9 state machine has versioning for backward compatibility, in case you want to maintain orders in production. However, if you see you can simply move all of those which have state A to state B -do it via migration. Be sure to test it carefully and check that order state history is not broken

  • UPDQFGGM9
    UPDQFGGM9 Posts: 29 🧑🏻‍🚀 - Cadet

    Okay. Thanks, I will have a look.