elsa-workflows / elsa-workflows/elsa-core
Problems with starting workflows
- Dominant language
- C#
- Stars
- 7.9k
- Forks
- 1.5k
- Avg merge
- 15h 22m
- Merged PRs (30d)
- 114
Description
I created an example workflow that sends a CreateOrder message on message bus (RabbitMQ), and then receives this message from the message bus. Then it publishes a CreateCompany message to the message bus, receives a CompanyCreated message. Between these actions there are WriteLine actions that print some texts to the console. At the start of the workflow, there is a Delay sets to 20 seconds. I start the workflow manually from the definition using the 'Run Workflow' button.
After starting, strange things happen:
Delay - sometimes it goes to the next step after 20 seconds, and sometimes even after a few minutes
Individual actions are sometimes started once, and sometimes several times - each may have a different number of started instances
The 'Publish Create Activity' action will publish a message on message bus (once or several times), while the next action that gets this message from message bus may not start and is suspended, or start several times and one start will be finished, and the rest will be in the running state
ElsaStudio v3.4 started in docker (image: elsaworkflows/elsa-studio-v3-4-0:latest)
ElsaServer v3.4 started as application in VisualStudio
The screenshots show what I described above.
I have uploaded a sample solution to github. Elsa.Messages contains sample messages. Elsa.Server - here I run the server instance. The Workflow directory contains exactly the problematic workflow. I run Studio from the docker image. If you need anything more, please let me know 🙂
Thank you very much for your help 🙂
github repo: https://github.com/tsharny/elsa-masstransit-sample-solution
Contributor guide
Assessment
This issue has not been assessed yet.