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 | nexus |
Serialization context of the Nexus operation handler that started this activity, if any. |
| 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 |
Serialization context of the Nexus operation handler that started this activity, if any.
Only set for standalone activities. The activity's result, failure and heartbeat details are
encoded with it because they are returned to the Nexus caller. To complete the activity
asynchronously, store this context with the task token and pass it to
temporalio.client.AsyncActivityHandle.with_context.
Warning
This API is experimental and unstable.
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.
namespace instead.