documentation icon indicating copy to clipboard operation
documentation copied to clipboard

JavaSDK Activity Cancellation section needs a snippet and more details

Open Spikhalskiy opened this issue 4 years ago • 1 comments

https://docs.temporal.io/docs/java/activities/#activity-cancellation

  1. Needs an improvement with a code snipped of activity getting information about cancellation from a heartbeat request using ActivityCompletionException
  2. Needs an explanation when and why Activity should rethrow this exception and how it's connected with ActivityCancellationType set on ActivityOptions: https://github.com/temporalio/sdk-java/blob/4d90cf0dc644646998135aa5e6b2a59fe13303de/temporal-sdk/src/main/java/io/temporal/activity/ActivityCancellationType.java#L29

Spikhalskiy avatar Oct 14 '21 00:10 Spikhalskiy

-> How to cancel an Activity Execution

flossypurse avatar Jun 16 '22 01:06 flossypurse

We don't really talk about cancelling in current docs as much as we talk about heartbeats etc -- is this still planned, @flossypurse ?

axfelix avatar Oct 11 '23 20:10 axfelix