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

Prevent workflow close when updates are undelivered #4313

Merged
merged 2 commits into from
May 11, 2023
Merged

Prevent workflow close when updates are undelivered #4313

merged 2 commits into from
May 11, 2023

Conversation

mmcshane
Copy link
Contributor

What changed?
Prevent a workflow from closing if there are workflow updates that have been admitted into the registry but which have not yet been seen by the workflow execution. Previous behavior was to prevent workflow close for any incomplete updates.

Why?
Consensus that this is the desired behavior. If a workflow execution has seen the update, it has also had the opportunity to prevent itself from completing. If the workflow has not taken action to prevent completion when it had the chance then the server should assume that was intentional.

How did you test it?
Unit and functional tests changed to expect new behavior

Potential risks
low

Is hotfix candidate?
no

@mmcshane mmcshane requested a review from a team as a code owner May 11, 2023 18:37
Matt McShane added 2 commits May 11, 2023 15:19
Prevent a workflow from closing if there are workflow updates that have
been admitted into the registry but which have not yet been seen by the
workflow execution.
@mmcshane mmcshane enabled auto-merge (squash) May 11, 2023 19:19
@mmcshane mmcshane merged commit 58e247b into temporalio:master May 11, 2023
@mmcshane mmcshane deleted the mpm/wft-failure-with-pending-update-behavior branch May 11, 2023 20:05
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