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

Update panic handling #1119

Merged
merged 1 commit into from
May 25, 2023
Merged

Update panic handling #1119

merged 1 commit into from
May 25, 2023

Conversation

mmcshane
Copy link
Contributor

What was changed

Recover panics from update validation by converting to PanicError - this will fail the update but not the WFT and will not trigger the WorkflowPanicPolicy. Panics from update execution still propagate out and will be handled by the task processing loop in accordance with the WorkflowPanicPolicy.

Why?

Consistent with query error behavior. Doesn't run afoul of pending updates when PanicPolicy is FailWorkflow. Consistent with java sdk

Checklist

  1. Closes

  2. How was this tested:

unit test here & pending changes to task_failure features tests

  1. Any docs updates needed?

Recover panics from validation by converting to PanicError - this will
fail the update but not the WFT and will not trigger the
WorkflowPanicPolicy. Panics from update execution still propagate out
and will be handled by the task processing loop in accordance with the
WorkflowPanicPolicy.
@mmcshane mmcshane requested a review from a team as a code owner May 25, 2023 14:04
@mmcshane mmcshane merged commit ed13374 into temporalio:master May 25, 2023
@mmcshane mmcshane deleted the mpm/validator-panic-recover branch May 25, 2023 15:55
@mmcshane mmcshane restored the mpm/validator-panic-recover branch May 25, 2023 17:44
@mmcshane mmcshane deleted the mpm/validator-panic-recover branch May 25, 2023 17:47
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.

3 participants