class documentation
class WorkflowExecution: (source)
Known subclasses: temporalio.client.WorkflowExecutionDescription
Constructor: WorkflowExecution._from_raw_info(info, converter, **additional_fields)
Info for a single workflow execution run.
Async Method | memo |
Workflow's memo values, converted without type hints. |
Async Method | memo |
Memo value for the given key, optional default, and optional type hint. |
Class Variable | close |
When the workflow was closed if closed. |
Class Variable | data |
Data converter from when this description was created. |
Class Variable | execution |
When this workflow run started or should start. |
Class Variable | history |
Number of events in the history. |
Class Variable | id |
ID for the workflow. |
Class Variable | parent |
ID for the parent workflow if this was started as a child. |
Class Variable | parent |
Run ID for the parent workflow if this was started as a child. |
Class Variable | raw |
Underlying protobuf info. |
Class Variable | run |
Run ID for this workflow run. |
Class Variable | search |
Current set of search attributes if any. |
Class Variable | start |
When the workflow was created. |
Class Variable | status |
Status for the workflow. |
Class Variable | task |
Task queue for the workflow. |
Class Variable | typed |
Current set of search attributes if any. |
Class Variable | workflow |
Type name for the workflow. |
Class Method | _from |
Undocumented |
Workflow's memo values, converted without type hints.
Since type hints are not used, the default converted values will come
back. For example, if the memo was originally created with a dataclass,
the value will be a dict. To convert using proper type hints, use
memo_value
.
Returns | |
Mapping[ | Mapping of all memo keys and they values without type hints. |
@overload
@overload
@overload
@overload
@overload
async def memo_value(self, key:
(source)
¶
str
, default: AnyType
, *, type_hint: Type[ ParamType]
) -> Union[ AnyType, ParamType]
:Memo value for the given key, optional default, and optional type hint.
Parameters | |
key:str | Key to get memo value for. |
default:Any | Default to use if key is not present. If unset, a
KeyError is raised when the key does not exist. |
typeOptional[ | Type hint to use when converting. |
Returns | |
Any | Memo value, converted with the type hint if present. |
Raises | |
KeyError | Key not present and default not set. |
Current set of search attributes if any.
Deprecated since version Use:
typed_search_attributes
instead.
@classmethod
def _from_raw_info(cls, info:
def _from_raw_info(cls, info:
temporalio.api.workflow.v1.WorkflowExecutionInfo
, converter: temporalio.converter.DataConverter
, **additional_fields) -> WorkflowExecution
:
(source)
¶
Undocumented