-
Notifications
You must be signed in to change notification settings - Fork 174
Wire reason parameter in workflow cancellation request #2519
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
Wire reason parameter in workflow cancellation request #2519
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How does this relate to #2414 (as part of temporalio/features#596)? Specifically, is this a partial implementation of that? And are other SDKs expected to follow suit with a "reason" from client side?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes as I said in the PR description this does not cover the workflow side
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Just wanted to confirm it is part of that project since it wasn't linked
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reason
on the client side is something we already do for terminate. I think how we expose this on the workflow side needs a bit of SDK team consensus so I left it out for now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this apply to child workflows?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the client WorkflowStub, child workflows have a different stub interface.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 I see CancellationScope.cancel
accepts a reason, does that propagate to RequestCancelExternalWorkflowExecutionCommandAttributes.reason
proto for child workflow? Similarly, I think we may want to have an overload for ExternalWorkflowStub.cancel
that accepts reason
. Both of those can be separate issues though, not blocking this one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see CancellationScope.cancel accepts a reason, does that propagate to RequestCancelExternalWorkflowExecutionCommandAttributes.reason proto for child workflow?
Not currently, the whole workflow side still needs to be done
1b8d3a2
to
e63d36e
Compare
Wire reason parameter in workflow cancellation request. Not this does not cover wiring the cancellation reason on the workflow side. There is a different issue to track that work.
closes #1350