File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -539,15 +539,15 @@ If ignored, the operation may enter a terminal state.
539
539
When a Nexus operation is started the caller can specify different cancellation types that will control how the caller reacts to cancellation:
540
540
541
541
- `ABANDON` - Do not request cancellation of the operation.
542
- - `TRY_CANCEL` - Initiate a cancellation request and immediately report cancellation to the caller. Note that it doesn't guarantee that cancellation is delivered to the operation handler if the caller exits before the delivery is done.
542
+ - `TRY_CANCEL` - Initiate a cancellation request and immediately report cancellation to the caller. Note that this type doesn't guarantee that cancellation is delivered to the operation handler if the caller exits before the delivery is done.
543
543
- `WAIT_REQUESTED` ` Request cancellation of the operation and wait for confirmation that the request was received. Doesn't wait for actual cancellation.
544
544
- `WAIT_COMPLETED` - Wait for operation completion. Operation may or may not complete as cancelled.
545
545
546
546
The default is `WAIT_COMPLETED`. Users can set a different option on the `NexusServiceOptions` by calling `.setCancellationType()` on `NexusServiceOptions.Builder`.
547
547
548
548
Once the caller Workflow completes, the caller's Nexus Machinery stops attempting to cancel operations that have not yet been canceled, letting them run to completion.
549
549
It's okay to leave operations running in some use cases.
550
- To ensure cancelations are delivered, wait for all pending operations to deliver their cancellation request before exiting the Workflow.
550
+ To ensure cancelations are delivered, wait for all pending operations to deliver their cancellation requests before exiting the Workflow.
551
551
552
552
See the [Nexus cancelation sample](https://github.com/temporalio/samples-java/tree/main/core/src/main/java/io/temporal/samples/nexuscancellation) for reference.
553
553
You can’t perform that action at this time.
0 commit comments