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

Disallow continue as new in update handlers #2167

Merged
merged 7 commits into from
Aug 6, 2024

Conversation

Quinn-With-Two-Ns
Copy link
Contributor

closes #2068

@Quinn-With-Two-Ns Quinn-With-Two-Ns requested a review from a team as a code owner August 4, 2024 00:13
Comment on lines 24 to 28
* Thrown when {@link io.temporal.workflow.Workflow#continueAsNew} is called from a location that is
* not supported.
*
* <p>The reason this class extends Error is for application workflow code to not catch it by
* mistake. The default behavior of the SDK is to block workflow execution while Error is thrown.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
* Thrown when {@link io.temporal.workflow.Workflow#continueAsNew} is called from a location that is
* not supported.
*
* <p>The reason this class extends Error is for application workflow code to not catch it by
* mistake. The default behavior of the SDK is to block workflow execution while Error is thrown.
* Thrown when {@link io.temporal.workflow.Workflow#continueAsNew} is called from an unsupported
* location.
*
* <p>This class extends Error so application workflow code won't catch it by
* mistake. The default behavior of the SDK is to block workflow execution while Error is thrown.

@Quinn-With-Two-Ns Quinn-With-Two-Ns merged commit 98b2e78 into temporalio:master Aug 6, 2024
8 checks passed
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.

Disallow continue as new in update handlers
3 participants