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: Optional[ _Runtime]
):
(source)
¶
Undocumented
@abstractmethod
def workflow_continue_as_new(self, *args:
def workflow_continue_as_new(self, *args:
Any
, workflow: Union[ None, Callable, str]
, task_queue: Optional[ str]
, run_timeout: Optional[ timedelta]
, task_timeout: Optional[ timedelta]
, retry_policy: Optional[ temporalio.common.RetryPolicy]
, memo: Optional[ Mapping[ str, Any]]
, search_attributes: Optional[ Union[ temporalio.common.SearchAttributes, temporalio.common.TypedSearchAttributes]]
, versioning_intent: Optional[ VersioningIntent]
) -> NoReturn
:
(source)
¶
Undocumented
@abstractmethod
def workflow_get_external_workflow_handle(self, id:
def workflow_get_external_workflow_handle(self, id:
str
, *, run_id: Optional[ str]
) -> ExternalWorkflowHandle[ Any]
:
(source)
¶
Undocumented
@abstractmethod
def workflow_get_query_handler(self, name:
def workflow_get_query_handler(self, name:
Optional[ str]
) -> Optional[ Callable]
:
(source)
¶
Undocumented
@abstractmethod
def workflow_get_signal_handler(self, name:
def workflow_get_signal_handler(self, name:
Optional[ str]
) -> Optional[ Callable]
:
(source)
¶
Undocumented
@abstractmethod
def workflow_get_update_handler(self, name:
def workflow_get_update_handler(self, name:
Optional[ str]
) -> Optional[ Callable]
:
(source)
¶
Undocumented
@abstractmethod
def workflow_get_update_validator(self, name:
def workflow_get_update_validator(self, name:
Optional[ str]
) -> Optional[ Callable]
:
(source)
¶
Undocumented
@abstractmethod
def workflow_memo_value(self, key:
def workflow_memo_value(self, key:
str
, default: Any
, *, type_hint: Optional[ Type]
) -> 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:
Optional[ str]
, handler: Optional[ Callable]
):
(source)
¶
Undocumented
@abstractmethod
def workflow_set_signal_handler(self, name:
def workflow_set_signal_handler(self, name:
Optional[ str]
, handler: Optional[ Callable]
):
(source)
¶
Undocumented
@abstractmethod
def workflow_set_update_handler(self, name:
def workflow_set_update_handler(self, name:
Optional[ str]
, handler: Optional[ Callable]
, validator: Optional[ Callable]
):
(source)
¶
Undocumented
@abstractmethod
async def workflow_sleep(self, duration:
async def workflow_sleep(self, duration:
float
, *, summary: Optional[ str]
= None):
(source)
¶
Undocumented
@abstractmethod
def workflow_start_activity(self, activity:
def workflow_start_activity(self, activity:
Any
, *args: Any
, task_queue: Optional[ str]
, result_type: Optional[ Type]
, schedule_to_close_timeout: Optional[ timedelta]
, schedule_to_start_timeout: Optional[ timedelta]
, start_to_close_timeout: Optional[ timedelta]
, heartbeat_timeout: Optional[ timedelta]
, retry_policy: Optional[ temporalio.common.RetryPolicy]
, cancellation_type: ActivityCancellationType
, activity_id: Optional[ str]
, versioning_intent: Optional[ VersioningIntent]
, summary: Optional[ str]
= None) -> 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: Optional[ str]
, result_type: Optional[ Type]
, cancellation_type: ChildWorkflowCancellationType
, parent_close_policy: ParentClosePolicy
, execution_timeout: Optional[ timedelta]
, run_timeout: Optional[ timedelta]
, task_timeout: Optional[ timedelta]
, id_reuse_policy: temporalio.common.WorkflowIDReusePolicy
, retry_policy: Optional[ temporalio.common.RetryPolicy]
, cron_schedule: str
, memo: Optional[ Mapping[ str, Any]]
, search_attributes: Optional[ Union[ temporalio.common.SearchAttributes, temporalio.common.TypedSearchAttributes]]
, versioning_intent: Optional[ VersioningIntent]
, static_summary: Optional[ str]
= None, static_details: Optional[ str]
= None) -> 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: Optional[ Type]
, schedule_to_close_timeout: Optional[ timedelta]
, schedule_to_start_timeout: Optional[ timedelta]
, start_to_close_timeout: Optional[ timedelta]
, retry_policy: Optional[ temporalio.common.RetryPolicy]
, local_retry_threshold: Optional[ timedelta]
, cancellation_type: ActivityCancellationType
, activity_id: Optional[ str]
) -> ActivityHandle[ Any]
:
(source)
¶
Undocumented
@abstractmethod
def workflow_upsert_search_attributes(self, attributes:
def workflow_upsert_search_attributes(self, attributes:
Union[ temporalio.common.SearchAttributes, Sequence[ temporalio.common.SearchAttributeUpdate]]
):
(source)
¶
Undocumented