class TemporalOperationHandler(OperationHandler[
Operation handler for Nexus operations that interact with Temporal. Implementations override the start_operation method.
Warning
This API is experimental and unstable.
| Async Method | cancel |
Cancel a Nexus operation using its operation token. |
| Async Method | cancel |
Requests cancellation of the standalone activity backing the operation. |
| Async Method | cancel |
Cancels the workflow backing the Nexus operation. |
| Async Method | cancel |
Cancels the Workflow Update triggered by the Nexus operation. There is no native way to cancel an accepted Update, so cancellation depends on the Update handler itself. Override this method and coordinate with the specific Update handler to trigger a cancellation. |
| Async Method | start |
Start the Nexus operation using a Nexus-aware Temporal client. |
| Async Method | start |
Start the Temporal-backed Nexus operation. |
TemporalCancelOperationContext, options: CancelActivityOptions):
(source)
¶
Requests cancellation of the standalone activity backing the operation.
TemporalCancelOperationContext, options: CancelWorkflowRunOptions):
(source)
¶
Cancels the workflow backing the Nexus operation.
Warning
This API is experimental and unstable.
TemporalCancelOperationContext, options: CancelUpdateWorkflowOptions):
(source)
¶
Cancels the Workflow Update triggered by the Nexus operation. There is no native way to cancel an accepted Update, so cancellation depends on the Update handler itself. Override this method and coordinate with the specific Update handler to trigger a cancellation.
Warning
This API is experimental and unstable.
StartOperationContext, input: InputT) -> StartOperationResultSync[ OutputT] | StartOperationResultAsync:
(source)
¶
Start the Nexus operation using a Nexus-aware Temporal client.
Warning
This API is experimental and unstable.
TemporalStartOperationContext, client: TemporalNexusClient, input: InputT) -> TemporalOperationResult[ OutputT]:
(source)
¶
Start the Temporal-backed Nexus operation.