class documentation
Known subclasses: temporalio.worker._workflow_instance._WorkflowInstanceImpl
Constructor: _Runtime.current()
Undocumented
@staticmethod
def set_on_loop(loop:
def set_on_loop(loop:
asyncio.AbstractEventLoop, runtime: _Runtime | None):
(source)
¶
Undocumented
@abstractmethod
def workflow_continue_as_new(self, *args:
def workflow_continue_as_new(self, *args:
Any, workflow: None | Callable | str, task_queue: str | None, run_timeout: timedelta | None, task_timeout: timedelta | None, retry_policy: temporalio.common.RetryPolicy | None, memo: Mapping[ str, Any] | None, search_attributes: temporalio.common.SearchAttributes | temporalio.common.TypedSearchAttributes | None, versioning_intent: VersioningIntent | None) -> NoReturn:
(source)
¶
Undocumented
@abstractmethod
def workflow_get_current_deployment_version(self) ->
def workflow_get_current_deployment_version(self) ->
temporalio.common.WorkerDeploymentVersion | None:
(source)
¶
Undocumented
@abstractmethod
def workflow_get_external_workflow_handle(self, id:
def workflow_get_external_workflow_handle(self, id:
str, *, run_id: str | None) -> ExternalWorkflowHandle[ Any]:
(source)
¶
Undocumented
@abstractmethod
def workflow_get_query_handler(self, name:
def workflow_get_query_handler(self, name:
str | None) -> Callable | None:
(source)
¶
Undocumented
@abstractmethod
def workflow_get_signal_handler(self, name:
def workflow_get_signal_handler(self, name:
str | None) -> Callable | None:
(source)
¶
Undocumented
@abstractmethod
def workflow_get_update_handler(self, name:
def workflow_get_update_handler(self, name:
str | None) -> Callable | None:
(source)
¶
Undocumented
@abstractmethod
def workflow_get_update_validator(self, name:
def workflow_get_update_validator(self, name:
str | None) -> Callable | None:
(source)
¶
Undocumented
@abstractmethod
def workflow_last_completion_result(self, type_hint:
def workflow_last_completion_result(self, type_hint:
type | None) -> Any | None:
(source)
¶
Undocumented
@abstractmethod
def workflow_memo_value(self, key:
def workflow_memo_value(self, key:
str, default: Any, *, type_hint: type | None) -> Any:
(source)
¶
Undocumented
@abstractmethod
def workflow_payload_converter(self) ->
def workflow_payload_converter(self) ->
temporalio.converter.PayloadConverter:
(source)
¶
Undocumented
@abstractmethod
def workflow_set_query_handler(self, name:
def workflow_set_query_handler(self, name:
str | None, handler: Callable | None):
(source)
¶
Undocumented
@abstractmethod
def workflow_set_signal_handler(self, name:
def workflow_set_signal_handler(self, name:
str | None, handler: Callable | None):
(source)
¶
Undocumented
@abstractmethod
def workflow_set_update_handler(self, name:
def workflow_set_update_handler(self, name:
str | None, handler: Callable | None, validator: Callable | None):
(source)
¶
Undocumented
@abstractmethod
async def workflow_sleep(self, duration:
async def workflow_sleep(self, duration:
float, *, summary: str | None = None):
(source)
¶
Undocumented
@abstractmethod
def workflow_start_activity(self, activity:
def workflow_start_activity(self, activity:
Any, *args: Any, task_queue: str | None, result_type: type | None, schedule_to_close_timeout: timedelta | None, schedule_to_start_timeout: timedelta | None, start_to_close_timeout: timedelta | None, heartbeat_timeout: timedelta | None, retry_policy: temporalio.common.RetryPolicy | None, cancellation_type: ActivityCancellationType, activity_id: str | None, versioning_intent: VersioningIntent | None, summary: str | None = None, priority: temporalio.common.Priority = temporalio.common.Priority.default) -> ActivityHandle[ Any]:
(source)
¶
Undocumented
@abstractmethod
async def workflow_start_child_workflow(self, workflow:
async def workflow_start_child_workflow(self, workflow:
Any, *args: Any, id: str, task_queue: str | None, result_type: type | None, cancellation_type: ChildWorkflowCancellationType, parent_close_policy: ParentClosePolicy, execution_timeout: timedelta | None, run_timeout: timedelta | None, task_timeout: timedelta | None, id_reuse_policy: temporalio.common.WorkflowIDReusePolicy, retry_policy: temporalio.common.RetryPolicy | None, cron_schedule: str, memo: Mapping[ str, Any] | None, search_attributes: temporalio.common.SearchAttributes | temporalio.common.TypedSearchAttributes | None, versioning_intent: VersioningIntent | None, static_summary: str | None = None, static_details: str | None = None, priority: temporalio.common.Priority = temporalio.common.Priority.default) -> ChildWorkflowHandle[ Any, Any]:
(source)
¶
Undocumented
@abstractmethod
def workflow_start_local_activity(self, activity:
def workflow_start_local_activity(self, activity:
Any, *args: Any, result_type: type | None, schedule_to_close_timeout: timedelta | None, schedule_to_start_timeout: timedelta | None, start_to_close_timeout: timedelta | None, retry_policy: temporalio.common.RetryPolicy | None, local_retry_threshold: timedelta | None, cancellation_type: ActivityCancellationType, activity_id: str | None, summary: str | None) -> ActivityHandle[ Any]:
(source)
¶
Undocumented
@abstractmethod
async def workflow_start_nexus_operation(self, endpoint:
async def workflow_start_nexus_operation(self, endpoint:
str, service: str, operation: nexusrpc.Operation[ InputT, OutputT] | str | Callable[ ..., Any], input: Any, output_type: type[ OutputT] | None, schedule_to_close_timeout: timedelta | None, cancellation_type: temporalio.workflow.NexusOperationCancellationType, headers: Mapping[ str, str] | None) -> NexusOperationHandle[ OutputT]:
(source)
¶
Undocumented
@abstractmethod
def workflow_upsert_search_attributes(self, attributes:
def workflow_upsert_search_attributes(self, attributes:
temporalio.common.SearchAttributes | Sequence[ temporalio.common.SearchAttributeUpdate]):
(source)
¶
Undocumented