Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

Quinn-With-Two-Ns
Copy link
Contributor

@Quinn-With-Two-Ns Quinn-With-Two-Ns commented May 13, 2025

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

@Quinn-With-Two-Ns Quinn-With-Two-Ns marked this pull request as ready for review May 13, 2025 21:13
@Quinn-With-Two-Ns Quinn-With-Two-Ns requested a review from a team as a code owner May 13, 2025 21:13
Copy link
Member

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?

Copy link
Contributor Author

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

Copy link
Member

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

Copy link
Contributor Author

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.

Copy link
Member

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?

Copy link
Contributor Author

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.

Copy link
Member

@cretz cretz May 14, 2025

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.

Copy link
Contributor Author

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

@Quinn-With-Two-Ns Quinn-With-Two-Ns merged commit b9458fc into temporalio:master May 14, 2025
9 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.

Wire #reason parameter in workflow cancellation request
2 participants