class documentation
class Info: (source)
Information about the running activity.
Retrieved inside an activity via info.
Warning
Do not construct this class directly. For testing, use
temporalio.testing.ActivityEnvironment.default_info with
dataclasses.replace to customize fields. This class may have
new required fields added in future versions.
| Class Variable | activity |
Undocumented |
| Class Variable | activity |
Run ID of this activity. None for workflow activities. |
| Class Variable | activity |
Undocumented |
| Class Variable | attempt |
Undocumented |
| Class Variable | current |
Undocumented |
| Class Variable | heartbeat |
Undocumented |
| Class Variable | heartbeat |
Undocumented |
| Class Variable | is |
Undocumented |
| Class Variable | namespace |
Undocumented |
| Class Variable | priority |
Undocumented |
| Class Variable | retry |
The retry policy of this activity. |
| Class Variable | schedule |
Undocumented |
| Class Variable | scheduled |
Undocumented |
| Class Variable | start |
Undocumented |
| Class Variable | started |
Undocumented |
| Class Variable | task |
Undocumented |
| Class Variable | task |
Undocumented |
| Class Variable | workflow |
ID of the workflow. None if the activity was not started by a workflow. |
| Class Variable | workflow |
Namespace of the workflow. None if the activity was not started by a workflow. |
| Class Variable | workflow |
Run ID of the workflow. None if the activity was not started by a workflow. |
| Class Variable | workflow |
Type of the workflow. None if the activity was not started by a workflow. |
| Property | in |
Was this activity started by a workflow? |
| Method | _logger |
Undocumented |
The retry policy of this activity.
Note that the server may have set a different policy than the one provided when scheduling the activity. If the value is None, it means the server didn't send information about retry policy (e.g. due to old server version), but it may still be defined server-side.
Namespace of the workflow. None if the activity was not started by a workflow.
Deprecated since version Use:
namespace instead.