class Info: (source)
Information about the running workflow.
Retrieved inside a workflow via info
. This object is immutable
with the exception of the search_attributes
and
typed_search_attributes
which is updated on
upsert_search_attributes
.
Note, required fields may be added here in future versions. This class should never be constructed by users.
Method | get |
Get the Build ID of the worker which executed the current Workflow Task. |
Method | get |
Get the current number of events in history. |
Method | get |
Get the current byte size of history. |
Method | is |
Get whether or not continue as new is suggested. |
Class Variable | attempt |
Undocumented |
Class Variable | continued |
Undocumented |
Class Variable | cron |
Undocumented |
Class Variable | execution |
Undocumented |
Class Variable | headers |
Undocumented |
Class Variable | namespace |
Undocumented |
Class Variable | parent |
Undocumented |
Class Variable | raw |
Undocumented |
Class Variable | retry |
Undocumented |
Class Variable | run |
Undocumented |
Class Variable | run |
Undocumented |
Class Variable | search |
Search attributes for the workflow. |
Class Variable | start |
Undocumented |
Class Variable | task |
Undocumented |
Class Variable | task |
Undocumented |
Class Variable | typed |
Search attributes for the workflow. |
Class Variable | workflow |
Undocumented |
Class Variable | workflow |
Undocumented |
Method | _logger |
Undocumented |
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.
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. |
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
.