Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Elsa 3.1.3 Http end point using dispatch workflow not waiting for child workflow completion even though 'Wait for completion' set true #5341

Open
mremadevi opened this issue May 3, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@mremadevi
Copy link

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
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

image

@mremadevi mremadevi added the bug Something isn't working label May 3, 2024
Copy link

glime-ai bot commented May 3, 2024

To address the issue of the parent workflow not waiting for the child workflow to complete despite the 'WaitForCompletion' property being set to true, we need to consider several factors that could be causing this behavior.

Firstly, ensure that the DispatchWorkflow activity in the parent workflow is correctly configured with the WaitForCompletion property set to true. This should theoretically cause the parent workflow to wait until the child workflow has completed before proceeding.

If the configuration is correct and the issue persists, it could be related to a known issue with the WriteHttpResponse activity going into a suspended state, as mentioned in the GitHub issues 5270 and 4895. These issues describe scenarios where the WriteHttpResponse activity does not terminate as expected and instead causes the workflow to suspend.

The problem might be related to the HTTP context not being available after a delay or asynchronous operation, as described in the GitHub issue 4895. The WriteHttpResponse activity expects to be resumed within an HTTP context, which may not be present if the workflow is resumed from a background job.

To troubleshoot further, you can:

  1. Review the configuration of both the parent and child workflows to ensure they are set up correctly according to the documentation and examples provided by Elsa Workflows.
  2. Check for any updates or patches to Elsa Workflows that might address this issue.
  3. Consider reaching out to the Elsa Workflows community or support channels with detailed information about your workflows and the issue you're encountering.

If you provide the JSON files for the parent and child workflows, I could review them for any potential misconfigurations. However, without access to the actual workflow definitions, the above suggestions are the best course of action based on the information provided.

This comment was generated by Glime.

@mremadevi mremadevi changed the title Elsa 3.1.3 Dispatch workflow not waiting for child workflow completion even though 'Wait for completion' set true Elsa 3.1.3 Http end point using dispatch workflow not waiting for child workflow completion even though 'Wait for completion' set true May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant