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

Open
#5,341 1 comment 0 reactions 0 assignees View on GitHub
bug triaged
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.

![image](https://github.com/elsa-workflows/elsa-core/assets/167574820/c2324d3d-a254-4342-adf5-54e398e5dfd5)

![image](https://github.com/elsa-workflows/elsa-core/assets/167574820/2d7b2e20-f21b-454a-b27c-991c0aefa20d)

Contributor guide

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.