Skip to content

Conversation

@mastermanu
Copy link
Member

The ParentClosePolicy Workflow was passing in the first run ID of a child workflow getting executed. This is problematic because if the child workflow is continued as new, the termination attempt will fail as that particular instance of the child execution is already completed.

This change was made because a Workflow with a lot of Child Workflows (more than the ParentClosePolicyThreshold setting) will not successfully terminate (or cancel) any Workflows that are continued as new.

Tested locally via the bench test.
STILL TODO: Investigating if we can add an integration test to exercise the ParentClosePolicy Workflow.

Low-risk as the intent of terminating a workflow is to cascade to its children for ParentClosePolicy = Terminate

@mastermanu mastermanu requested a review from samarabbas August 27, 2020 04:52
Copy link
Contributor

@samarabbas samarabbas left a comment

Choose a reason for hiding this comment

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

Need to include FirstExecutionRunID with terminate request.

…fix_termination_cancellation_large_number_child_workflows
…ws' of github.com:mastermanu/temporal into fix_termination_cancellation_large_number_child_workflows
@mastermanu mastermanu requested a review from samarabbas August 27, 2020 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants