elsa-workflows / elsa-workflows/elsa-core
Elsa 3.1.3 Http end point using dispatch workflow not waiting for child workflow completion even though 'Wait for completion' set true
- Dominant language
- C#
- Stars
- 7.9k
- Forks
- 1.5k
- Avg merge
- 15h 22m
- Merged PRs (30d)
- 114
Description
Dispatch workflow not waiting for child workflow completion even though 'Wait for completion' set true.
Attached is the workflows tested for using Http end point.
[parent.json](https://github.com/elsa-workflows/elsa-core/files/15204455/parent.json)
[child.json](https://github.com/elsa-workflows/elsa-core/files/15204456/child.json)
Before child workflow completes HttpResponse is returned . As shown in screenshots below 'WriteHttpResponse' goes to suspended state as the response is already returned.


Contributor guide
Research direction
Reproduce the behavior through the HTTP endpoint using the attached parent.json and child.json workflows. Start by tracing the dispatch workflow path with “Wait for completion” enabled and observe when WriteHttpResponse runs relative to child workflow completion. Done means the supplied scenario waits for the child to complete before returning the HTTP response.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100