elsa-workflows / elsa-workflows/elsa-core
Parallel delays cause last delay to keep running indefinitely
- Dominant language
- C#
- Stars
- 7.9k
- Forks
- 1.5k
- Avg merge
- 15h 22m
- Merged PRs (30d)
- 114
Description
## Description
When having two parallels paths of 2 delay and a WaitAll Join, one of the delays gets stuck and never finishes.
## Steps to Reproduce
Two paths of each two delay with different short timings (1, 2, 3 and 4 seconds in my case). Joined by a WaitAll Join.
[parallel-delay-bug.json](https://github.com/user-attachments/files/24028071/parallel-delay-bug.json)
## Expected Behavior
I expect both path to complete after the set time and join at the WaitAll join.
## Actual Behavior
The last Delays stays "running" indefinitely, past its set time of e.g. 4 seconds.
## Screenshots
## Environment
- **Elsa Package Version**: Release 3.5.2
- **Operating System**: Windows 11
- **Browser and Version**: Microsoft Edge
Contributor guide
Research direction
Start by importing the attached parallel-delay-bug.json workflow in Elsa 3.5.2 and reproducing it with two parallel paths, each containing two delays and a WaitAll Join. Trace why the final delay remains running beyond its configured time; done means both paths complete and the WaitAll Join finishes as expected.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100