class documentation
class WorkflowHandle(Generic[
A handle to a workflow that is backing a Nexus operation.
Do not instantiate this directly. Use
temporalio.nexus.WorkflowRunOperationContext.start_workflow to create a
handle.
def _unsafe_from_client_workflow_handle(cls, workflow_handle:
temporalio.client.WorkflowHandle[ Any, OutputT]) -> WorkflowHandle[ OutputT]:
(source)
¶
Create a WorkflowHandle from a temporalio.client.WorkflowHandle.
This is a private method not intended to be used by users. It does not check that the supplied client.WorkflowHandle references a workflow that has been instrumented to supply the result of a Nexus operation.
def _to_client_workflow_handle(self, client:
temporalio.client.Client, result_type: type[ OutputT] | None = None) -> temporalio.client.WorkflowHandle[ Any, OutputT]:
(source)
¶
Create a temporalio.client.WorkflowHandle from the token.
