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
Comments
-
since the right part wont be executed
0 -
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.0 -
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
0 -
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
0 -
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
0 -
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
0 -
okay, then it definitely makes sense to include it into the process and make
exported to jelly
->payment pending
transition0 -
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
0 -
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.
0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 75 Spryker News
- 921 Developer Corner
- 781 Spryker Development
- 88 Spryker Dev Environment
- 362 Spryker Releases
- 3 Oryx frontend framework
- 34 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 25 Job Opportunities
- 3.2K 📜 Slack Archives
- 116 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random Stuff
- 4 Code Testing
- 32 Product & Business Questions
- 70 Spryker Safari Questions
- 50 Random