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..

Hi everyone, a tricky question here: Lets say i have an oms process running in the background, is it

UKKQKJ9FX
UKKQKJ9FX Posts: 38 🧑🏻‍🚀 - Cadet

Hi everyone, a tricky question here:
Lets say i have an oms process running in the background, is it possible to send some sort of signal (cancellation request) to cancel the order and stop the oms exectuion. If i just make an api request to cancell the order, the running process overrides the request

Comments

  • UKEP86J66
    UKEP86J66 Posts: 208 🧑🏻‍🚀 - Cadet

    Does sound tricky - could you add a guard condition in your OMS state machine, eg 'isCancelled?' which checks a flag in the db and moves the order to a cancelled state if the flag is set?

  • UKKQKJ9FX
    UKKQKJ9FX Posts: 38 🧑🏻‍🚀 - Cadet

    I tried it like that, but don't know what else do I have to update, what about entry in spy_oms_transition_log table ?