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

Add workflow update RPC timeout/canceled exception #283

Merged
merged 3 commits into from
Jun 21, 2024

Conversation

cretz
Copy link
Member

@cretz cretz commented Jun 20, 2024

What was changed

Added WorkflowUpdateRpcTimeoutOrCanceledException and ensured that it was thrown on update RPC calls that are cancelled or timeout

Checklist

  1. Closes Wrap GRPC::CANCELED and DEADLINE_EXCEEDED in an SDK Timeout exception for Update #250

@cretz cretz requested a review from a team June 20, 2024 22:49
rpcErr.Code == RpcException.StatusCode.DeadlineExceeded ||
rpcErr.Code == RpcException.StatusCode.Cancelled)))
{
throw new WorkflowUpdateRpcTimeoutOrCanceledException(e);
Copy link
Member

Choose a reason for hiding this comment

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

Do we not want to keep retrying the start in these cases? Or, I guess right now that doesn't matter since there's no explicit overall "update timeout", only the rpc timeout?

Copy link
Member Author

Choose a reason for hiding this comment

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

No, these are usually caused by user-provided timeout or user-initiated cancel. Right, there is no update timeout yet which would be an application level concern and would be considered an update failure as opposed to an RPC failure.

@cretz cretz merged commit 8b430c4 into temporalio:main Jun 21, 2024
7 checks passed
@cretz cretz deleted the update-cancel-or-timeout-error branch June 21, 2024 18:27
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.

Wrap GRPC::CANCELED and DEADLINE_EXCEEDED in an SDK Timeout exception for Update
2 participants