class documentation
class ActivityExecutionDescription(ActivityExecution): (source)
Constructor: ActivityExecutionDescription._from_execution_info(info, long_poll_token, namespace, data_converter)
Detailed information about an activity execution not started by a workflow.
Warning
This API is experimental.
| Class Variable | attempt |
Current attempt number. |
| Class Variable | canceled |
Reason for cancellation, if cancel was requested. |
| Class Variable | current |
Time until the next retry, if applicable. |
| Class Variable | eager |
Whether eager execution was requested for this activity. |
| Class Variable | expiration |
Scheduled time plus schedule_to_close_timeout. |
| Class Variable | last |
Time when the last attempt completed. |
| Class Variable | last |
Failure from the last failed attempt, if any. |
| Class Variable | last |
Time of the last heartbeat. |
| Class Variable | last |
Time the last attempt was started. |
| Class Variable | last |
Identity of the last worker that processed the activity. |
| Class Variable | long |
Token for follow-on long-poll requests. None if the activity is complete. |
| Class Variable | next |
Time when the next attempt will be scheduled. |
| Class Variable | paused |
Whether the activity is paused. |
| Class Variable | raw |
Details from the last heartbeat. |
| Class Variable | retry |
Retry policy for the activity. |
| Class Variable | run |
More detailed breakdown if status is RUNNING. |
| Async Class Method | _from |
Create from raw proto activity execution info. |
Inherited from ActivityExecution:
| Class Variable | activity |
Activity ID. |
| Class Variable | activity |
Run ID of the activity. |
| Class Variable | activity |
Type name of the activity. |
| Class Variable | close |
Time the activity reached a terminal status, if closed. |
| Class Variable | execution |
Duration from scheduled to close time, only populated if closed. |
| Class Variable | namespace |
Namespace of the activity (copied from calling client). |
| Class Variable | raw |
Underlying protobuf info. |
| Class Variable | scheduled |
Time the activity was originally scheduled. |
| Class Variable | state |
Number of state transitions, if available. |
| Class Variable | status |
Current status of the activity. |
| Class Variable | task |
Task queue the activity was scheduled on. |
| Class Variable | typed |
Current set of search attributes if any. |
| Class Method | _from |
Create from raw proto activity list info. |
async def _from_execution_info(cls, info:
temporalio.api.activity.v1.ActivityExecutionInfo, long_poll_token: bytes | None, namespace: str, data_converter: temporalio.converter.DataConverter) -> Self:
(source)
¶
Create from raw proto activity execution info.