class documentation
class WorkflowRunOperationHandler(OperationHandler[
Constructor: WorkflowRunOperationHandler(start, input_type, output_type)
Operation handler for Nexus operations that start a workflow.
Use this class to create an operation handler that starts a workflow by passing your
start method to the constructor. Your start method must use
temporalio.nexus.WorkflowRunOperationContext.start_workflow
to start the
workflow.
Method | __init__ |
Initialize the workflow run operation handler. |
Async Method | cancel |
Cancel the operation, by cancelling the workflow. |
Async Method | fetch |
Fetch operation info (not supported for Temporal Nexus operations). |
Async Method | fetch |
Fetch operation result (not supported for Temporal Nexus operations). |
Async Method | start |
Start the operation, by starting a workflow and completing asynchronously. |
Instance Variable | _input |
Undocumented |
Instance Variable | _output |
Undocumented |
Instance Variable | _start |
Undocumented |
def __init__(self, start:
Callable[ [ StartOperationContext, InputT], Awaitable[ WorkflowHandle[ OutputT]]]
, input_type: type[ InputT] | None
, output_type: type[ OutputT] | None
):
(source)
¶
Initialize the workflow run operation handler.