class documentation
class TemporalNexusOperationHandler(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 |
Cancels the workflow backing the Nexus operation. |
| Async Method | start |
Start the Nexus operation using a Nexus-aware Temporal client. |
| Async Method | start |
Start the Temporal-backed Nexus operation. |
async def cancel_workflow_run(self, ctx:
TemporalNexusCancelOperationContext, options: CancelWorkflowRunOptions):
(source)
¶
Cancels the workflow backing the Nexus operation.
Warning
This API is experimental and unstable.
async def start(self, ctx:
StartOperationContext, input: InputT) -> StartOperationResultSync[ OutputT] | StartOperationResultAsync:
(source)
¶
Start the Nexus operation using a Nexus-aware Temporal client.
Warning
This API is experimental and unstable.
@abstractmethod
async def start_operation(self, ctx: TemporalNexusStartOperationContext, client: TemporalNexusClient, input: InputT) -> TemporalOperationResult[ OutputT]:
(source)
¶
Start the Temporal-backed Nexus operation.