sdk-java icon indicating copy to clipboard operation
sdk-java copied to clipboard

Expose Workflow cancel cause/reason

Open Sushisource opened this issue 11 months ago • 4 comments

WorkflowExecutionCancelRequestedEventAttributes has a cause field that should be exposed when workflows receive cancels, and we should additionally expose this as an input when users are issuing cancels from clients or commands

Sushisource avatar Feb 11 '25 20:02 Sushisource

@Sushisource does this reason also exposed to a running activity when it heartbeats and gets ActivityCanceledException execption?

madhav2302 avatar Mar 05 '25 21:03 madhav2302

@madhav2302 No, this information is not returned by the Server on heartbeat. The only information the Server returns is if to cancel the activity.

Quinn-With-Two-Ns avatar Mar 10 '25 14:03 Quinn-With-Two-Ns

@Quinn-With-Two-Ns are there any plans to add it? or do we need to open a feature request?

It would be nice to know the cancellation reason in activity as well, so it helps with easy debugging with each activity when something goes bad.

madhav2302 avatar Mar 10 '25 15:03 madhav2302

Hi @madhav2302 , we have already submitted a feature request for this to our product team.

antmendoza avatar Mar 10 '25 16:03 antmendoza