temporalio.workflow.Info
Get the Build ID of the worker which executed the current Workflow Task.
May be undefined if the task was completed by a worker without a Build ID. If this worker is the one executing this task for the first time and has a Build ID set, then its ID will be used. This value may change over the lifetime of the workflow run, but is deterministic and safe to use for branching.
Deprecated since version Use: get_current_deployment_version instead.
Get the deployment version of the worker which executed the current Workflow Task.
May be None if the task was completed by a worker without a deployment version or build id. If this worker is the one executing this task for the first time and has a deployment version set, then its ID will be used. This value may change over the lifetime of the workflow run, but is deterministic and safe to use for branching.
Get the current number of events in history.
Note, this value may not be up to date if accessed inside a query.
| Returns | |
int | Current number of events in history (up until the current task). |
Get the current byte size of history.
Note, this value may not be up to date if accessed inside a query.
| Returns | |
int | Current byte-size of history (up until the current task). |
Get whether or not continue as new is suggested.
Note, this value may not be up to date if accessed inside a query.
| Returns | |
bool | True if the server is configured to suggest continue as new and it is suggested. |
Check whether the target worker deployment version has changed.
Note: Upgrade-on-Continue-as-New is currently experimental.
| Returns | |
bool | True if the target worker deployment version has changed. |
The priority of this workflow execution. If not set, or this server predates priorities, then returns a default instance.
Search attributes for the workflow.
Deprecated since version Use: typed_search_attributes instead.
The start time of the first task executed by the workflow.
Search attributes for the workflow.
Note, this may have invalid values or be missing values if passing the
deprecated form of dictionary attributes to
upsert_search_attributes.
The start time of the workflow based on the workflow initialization.