-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Workflow stuck in suspended state #4895
Comments
Based on the context provided, it seems like you are encountering an issue where adding multiple HTTP Request activities in your workflow causes the workflow to suspend at the HTTP Response activity. This behavior could be related to a known issue with handling multiple asynchronous HTTP calls within Elsa workflows, as indicated in the GitHub issue #4737 and #4763. The issue described in #4737 was initially fixed, but a follow-up problem was reported in #4763 indicating that the next activity after multiple asynchronous HTTP calls never gets executed, and the To address this issue, you should first ensure that you are using the latest version of Elsa, as updates and bug fixes are regularly released. If you are already on the latest version and the problem persists, you may want to follow the progress of the issue on the GitHub repository or reach out to the maintainers for further assistance. In the meantime, you can try the following steps as a workaround:
If you provide the JSON file of the workflow, I could give more specific advice on potential issues within the workflow definition. For further assistance, you may also want to consult the Elsa documentation or seek help from the community on the Elsa GitHub repository or discussion forums. |
I am using Elsa server 3.04 which already has a fix mentioned above. Below is Json workflow file for your reference: Below is screenshot of the workflow where it goes to suspended state: |
The reason that the HTTP Response activity remains in the Suspended state is because there is no HTTP Context at that point - this is because of the way that the When there's no HTTP Context, the HTTP Response assumes that it will be resumed by the host application once the workflow can be resumed from within an HTTP Context - but this would be up to the application and cannot be handled automatically. To "fix" your workflow, you would need to basically remove the Delay activity. |
I created a workflow in the designer where HTTP Request and HTTP Response activity used. If I run workflow where I have one HTTP Request and one HTTP Response activity in flow, then it works fine but as soon as I have few more HTTP Request added then it always suspends at the HTTP Response activity.
Could you please help me on this? Please let me know if you need more information from my side.
The text was updated successfully, but these errors were encountered: