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

Fix empty with items list resulting in parent workflow stuck in running #4959

Merged
merged 1 commit into from
May 25, 2020

Conversation

m4dcoder
Copy link
Contributor

Fix a bug where passing an empty list to a with items task in a subworkflow causes the parent workflow to be stuck in running status. The workflow engine usually skips execution of the with items task because the list is empty. The issue here is that when the task is marked complete, the status change in the task wasn't published which will triggered additional logic to handle completion and move the parent workflow forward. This patch publishes the completeion status of the task now. Fixes #4954.

Fix a bug where passing an empty list to a with items task in a subworkflow causes the parent workflow to be stuck in running status. The workflow engine usually skips execution of the with items task because the list is empty. The issue here is that when the task is marked complete, the status change in the task wasn't published which will triggered additional logic to handle completion and move the parent workflow forward. This patch publishes the completeion status of the task now.
@m4dcoder m4dcoder requested a review from blag May 23, 2020 20:52
@pull-request-size pull-request-size bot added the size/L PR that changes 100-499 lines. Requires some effort to review. label May 23, 2020
@m4dcoder m4dcoder requested a review from nmaludy May 23, 2020 20:52
@m4dcoder m4dcoder added this to the 3.2.1 milestone May 23, 2020
Copy link
Member

@nmaludy nmaludy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good and the tests should help cover this from occurring in the future

@m4dcoder m4dcoder merged commit 1c75443 into master May 25, 2020
@m4dcoder m4dcoder deleted the orquesta-empty-list branch May 25, 2020 17:19
@punkrokk punkrokk modified the milestones: 3.2.1, 3.3.0 Jul 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/L PR that changes 100-499 lines. Requires some effort to review.
Projects
None yet
4 participants