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

Good Morning, is it in the state machine possible to run parallel (as sub) processes and one of them

UK7KBE2JW
UK7KBE2JW Posts: 463 🧑🏻‍🚀 - Cadet
edited October 2019 in Help

Good Morning, is it in the state machine possible to run parallel (as sub) processes and one of them is with timeout?

Comments

  • UK7KBE2JW
    UK7KBE2JW Posts: 463 🧑🏻‍🚀 - Cadet

    since the right part wont be executed

  • UKHR9UN00
    UKHR9UN00 Posts: 70 🧑🏻‍🚀 - Cadet

    Hi Julian,
    that's against the idea of the state machine, where an item always is in a specific state. If you want to export your order asynchronously you could use RabbitMq.

  • UK7KBE2JW
    UK7KBE2JW Posts: 463 🧑🏻‍🚀 - Cadet

    Ok, thank you for the feedback. I thought it could be possible to have it included in the state machine so it is easier to track

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

    What exactly you want to track, and what do you mean by that? It would be great to have the “export” part synchronously executed between “exported” and “payment pending”. It’s easier then to understand and maintain the process.

    However, if exporting to “jelly” can’t (an won’t) affect the order item in any sense - you can easily move it out from the state machine and do it by cron on console command.

    At least it looks like it atm from your state machine

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

    But as soon as you start having conditions like “if export if failed, avoid further processing” or so - then it must be in a state machine

  • UK7KBE2JW
    UK7KBE2JW Posts: 463 🧑🏻‍🚀 - Cadet

    the jelly exporter should replace the current exporter. But at the moment they should run both and the new one must not interrupt the process in case of failure but there should be the information in the history if it was executed

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

    okay, then it definitely makes sense to include it into the process and make exported to jelly -> payment pending transition

  • UK7KBE2JW
    UK7KBE2JW Posts: 463 🧑🏻‍🚀 - Cadet
    edited October 2019

    yeah thx thats the way i did atm. But would be great if it would be possible to run it separately near the normal flow

  • UKHR9UN00
    UKHR9UN00 Posts: 70 🧑🏻‍🚀 - Cadet

    If it's only about execution (and you don't rely on the result) you could modify your jelly export command so it catches (and logs) possible exceptions without interrupting the process.