Repository navigation
Correct what happens to an Update when the Workflow closes - #5837
Merged
Merged
Conversation
The docs said an Update arriving during a closing Workflow Task fails the task with Unhandled Update. The server has that check commented out: Updates don't block a Workflow from closing. Document the actual outcomes: NOT_FOUND for an unaccepted Update when the run closes, a retryable busy Workflow error when it continues as new, and an AcceptedUpdateCompletedWorkflow Update failure for an accepted Update whose handler hasn't finished. The SDK message-passing pages still described the pre-GA "workflow execution already completed" / NOT_FOUND error for that last case.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
📖 Docs PR preview links
|
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The retry guidance needs to specify using the Workflow ID without the old Run ID, which otherwise keeps Updates targeted at the closed run rather than its successor.
1 open issue
What changed in this PR
Corrects documentation about Updates when a Workflow closes, aligning the shared explanation, error references, troubleshooting guidance, and seven SDK pages.
Changes:
- Distinguishes closure outcomes for unaccepted Updates and accepted Updates with unfinished handlers.
- Removes the claim that pending Updates prevent Workflow completion and adds Continue-As-New retry guidance.
- Documents SDK-specific errors for
AcceptedUpdateCompletedWorkflow.
| File | Description |
|---|---|
docs/troubleshooting/request-failures.mdx |
Adds the Continue-As-New Update case to busy Workflow guidance. |
docs/references/workflow-task-errors.mdx |
Corrects Unhandled Update and expands busy Workflow causes. |
docs/encyclopedia/workflow-message-passing/handling-messages.mdx |
Explains Update outcomes when a run closes. |
docs/develop/typescript/workflows/message-passing.mdx |
Documents WorkflowUpdateFailedError and its cause. |
docs/develop/ruby/workflows/message-passing.mdx |
Documents WorkflowUpdateFailedError and its cause. |
docs/develop/python/workflows/message-passing.mdx |
Documents WorkflowUpdateFailedError and its cause. |
docs/develop/php/workflows/message-passing.mdx |
Specifies the previous exception in WorkflowUpdateException. |
docs/develop/java/workflows/message-passing.mdx |
Documents WorkflowUpdateException and its cause. |
docs/develop/go/workflows/message-passing.mdx |
Documents the returned temporal.ApplicationError type. |
docs/develop/dotnet/workflows/message-passing.mdx |
Documents WorkflowUpdateFailedException and its inner exception. |
Review effort: Balanced
brianmacdonald-temporal
approved these changes
Dec 1, 2026
brianmacdonald-temporal
left a comment
Contributor
There was a problem hiding this comment.
Java link got left out; restored it.
Duncanma
enabled auto-merge (squash)
December 1, 2026 18:05
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
Raised in Slack: the docs said an Update arriving while a Workflow Task closes the Workflow fails that task with
Unhandled Update, and Kapa repeated that. The server doesn't do this. Inrespondworkflowtaskcompleted/api.go, the admitted-Update check is commented out until Updates are durable at admission, and the Workflow Update architecture doc says Updates don't block completion.The actual outcomes, from
workflow/update/abort_reason.go:RESOURCE_EXHAUSTED/BUSY_WORKFLOW; retry goes to the new runAcceptedUpdateCompletedWorkflowNOT_FOUNDAcceptedUpdateCompletedWorkflowAcceptedUpdateCompletedWorkflowlanded in temporalio/temporal#6630, first released in v1.26.2 (Update GA).Changes
encyclopedia/workflow-message-passing/handling-messages.mdx: removed the Unhandled Update claim and the "clients get Not Found" claim. Added a list of the three outcomes after the Signal paragraphs.references/workflow-task-errors.mdx: Unhandled Update now says the server doesn't fail tasks with this cause and links to the encyclopedia. Busy Workflow now lists the Continue-As-New Update case, with retry guidance separate from lock-contention guidance.troubleshooting/request-failures.mdx: same busy Workflow addition.message-passing.mdxpages (Go, Java, .NET, Python, Ruby, TypeScript, PHP): "The Workflow finished while the Update handler execution was in progress" now names the SDK's Update-failed error with anAcceptedUpdateCompletedWorkflowcause instead of a pre-GANOT_FOUND/ "workflow execution already completed" RPC error.Review notes
cause(Python, TypeScript, Java, Ruby),InnerException(.NET), orgetPrevious()(PHP). Go'sGetreturns the*temporal.ApplicationErrordirectly.