class documentation

class _Runtime(ABC): (source)

View In Hierarchy

Undocumented

Static Method current Undocumented
Static Method maybe_current Undocumented
Static Method set_on_loop Undocumented
Method __init__ Undocumented
Method workflow_continue_as_new Undocumented
Method workflow_extern_functions Undocumented
Method workflow_get_current_history_length Undocumented
Method workflow_get_external_workflow_handle Undocumented
Method workflow_get_query_handler Undocumented
Method workflow_get_signal_handler Undocumented
Method workflow_info Undocumented
Method workflow_is_replaying Undocumented
Method workflow_memo Undocumented
Method workflow_memo_value Undocumented
Method workflow_patch Undocumented
Method workflow_random Undocumented
Method workflow_set_query_handler Undocumented
Method workflow_set_signal_handler Undocumented
Method workflow_start_activity Undocumented
Async Method workflow_start_child_workflow Undocumented
Method workflow_start_local_activity Undocumented
Method workflow_time_ns Undocumented
Method workflow_upsert_search_attributes Undocumented
Async Method workflow_wait_condition Undocumented
Property logger_details Undocumented
Instance Variable _logger_details Undocumented
@staticmethod
def current() -> _Runtime: (source)

Undocumented

@staticmethod
def maybe_current() -> Optional[_Runtime]: (source)

Undocumented

Undocumented

def __init__(self): (source)

Undocumented

@abstractmethod
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[temporalio.common.SearchAttributes]) -> NoReturn: (source)

Undocumented

@abstractmethod
def workflow_extern_functions(self) -> Mapping[str, Callable]: (source)

Undocumented

@abstractmethod
def workflow_get_current_history_length(self) -> int: (source)

Undocumented

@abstractmethod
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: Optional[str]) -> Optional[Callable]: (source)

Undocumented

@abstractmethod
def workflow_get_signal_handler(self, name: Optional[str]) -> Optional[Callable]: (source)

Undocumented

@abstractmethod
def workflow_info(self) -> Info: (source)

Undocumented

@abstractmethod
def workflow_is_replaying(self) -> bool: (source)

Undocumented

@abstractmethod
def workflow_memo(self) -> Mapping[str, Any]: (source)

Undocumented

@abstractmethod
def workflow_memo_value(self, key: str, default: Any, *, type_hint: Optional[Type]) -> Any: (source)

Undocumented

@abstractmethod
def workflow_patch(self, id: str, *, deprecated: bool) -> bool: (source)

Undocumented

@abstractmethod
def workflow_random(self) -> Random: (source)

Undocumented

@abstractmethod
def workflow_set_query_handler(self, name: Optional[str], handler: Optional[Callable]): (source)

Undocumented

@abstractmethod
def workflow_set_signal_handler(self, name: Optional[str], handler: Optional[Callable]): (source)

Undocumented

@abstractmethod
def workflow_start_activity(self, activity: Any, *args: Any, activity_id: Optional[str], task_queue: Optional[str], 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) -> ActivityHandle[Any]: (source)

Undocumented

@abstractmethod
async def workflow_start_child_workflow(self, workflow: Any, *args: Any, id: str, task_queue: Optional[str], namespace: Optional[str], 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[temporalio.common.SearchAttributes]) -> ChildWorkflowHandle[Any, Any]: (source)

Undocumented

@abstractmethod
def workflow_start_local_activity(self, activity: Any, *args: Any, activity_id: Optional[str], 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) -> ActivityHandle[Any]: (source)

Undocumented

@abstractmethod
def workflow_time_ns(self) -> int: (source)

Undocumented

@abstractmethod
def workflow_upsert_search_attributes(self, attributes: temporalio.common.SearchAttributes): (source)

Undocumented

@abstractmethod
async def workflow_wait_condition(self, fn: Callable[[], bool], *, timeout: Optional[float] = None): (source)

Undocumented

@property
logger_details: Mapping[str, Any] = (source)

Undocumented

_logger_details: Optional[Mapping[str, Any]] = (source)

Undocumented