temporalio.worker._workflow_instance._ExternalWorkflowHandle

def __init__(self, instance: _WorkflowInstanceImpl, id: str, run_id: str | None): (source)

Undocumented

async def cancel(self): (source)

Send a cancellation request to this external workflow.

This will fail if the workflow cannot accept the request (e.g. if the workflow is not found).

async def signal(self, signal: str | Callable, arg: Any = temporalio.common._arg_unset, *, args: Sequence[Any] = []): (source)

Signal this external workflow.

Parameters
signal:str | CallableName or method reference for the signal.
arg:AnySingle argument to the signal.
args:Sequence[Any]Multiple arguments to the signal. Cannot be set if arg is.

id: str = (source)

ID for the workflow.

run_id: str | None = (source)

Run ID for the workflow if any.

_id = (source)

Undocumented

_instance = (source)

Undocumented

_run_id = (source)

Undocumented