class documentation

class ActivityExecutionDescription(ActivityExecution): (source)

View In Hierarchy

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 Reason for cancellation, if cancel was requested.
Class Variable current_retry_interval Time until the next retry, if applicable.
Class Variable eager_execution_requested Whether eager execution was requested for this activity.
Class Variable expiration_time Scheduled time plus schedule_to_close_timeout.
Class Variable last_attempt_complete_time Time when the last attempt completed.
Class Variable last_failure Failure from the last failed attempt, if any.
Class Variable last_heartbeat_time Time of the last heartbeat.
Class Variable last_started_time Time the last attempt was started.
Class Variable last_worker_identity Identity of the last worker that processed the activity.
Class Variable long_poll_token Token for follow-on long-poll requests. None if the activity is complete.
Class Variable next_attempt_schedule_time Time when the next attempt will be scheduled.
Class Variable paused Whether the activity is paused.
Class Variable raw_heartbeat_details Details from the last heartbeat.
Class Variable retry_policy Retry policy for the activity.
Class Variable run_state More detailed breakdown if status is RUNNING.
Async Class Method _from_execution_info Create from raw proto activity execution info.

Inherited from ActivityExecution:

Class Variable activity_id Activity ID.
Class Variable activity_run_id Run ID of the activity.
Class Variable activity_type Type name of the activity.
Class Variable close_time Time the activity reached a terminal status, if closed.
Class Variable execution_duration Duration from scheduled to close time, only populated if closed.
Class Variable namespace Namespace of the activity (copied from calling client).
Class Variable raw_info Underlying protobuf info.
Class Variable scheduled_time Time the activity was originally scheduled.
Class Variable state_transition_count Number of state transitions, if available.
Class Variable status Current status of the activity.
Class Variable task_queue Task queue the activity was scheduled on.
Class Variable typed_search_attributes Current set of search attributes if any.
Class Method _from_raw_info Create from raw proto activity list info.

Current attempt number.

canceled_reason: str | None = (source)

Reason for cancellation, if cancel was requested.

current_retry_interval: timedelta | None = (source)

Time until the next retry, if applicable.

eager_execution_requested: bool = (source)

Whether eager execution was requested for this activity.

expiration_time: datetime = (source)

Scheduled time plus schedule_to_close_timeout.

last_attempt_complete_time: datetime | None = (source)

Time when the last attempt completed.

last_failure: Exception | None = (source)

Failure from the last failed attempt, if any.

last_heartbeat_time: datetime | None = (source)

Time of the last heartbeat.

last_started_time: datetime | None = (source)

Time the last attempt was started.

last_worker_identity: str = (source)

Identity of the last worker that processed the activity.

long_poll_token: bytes | None = (source)

Token for follow-on long-poll requests. None if the activity is complete.

next_attempt_schedule_time: datetime | None = (source)

Time when the next attempt will be scheduled.

Whether the activity is paused.

raw_heartbeat_details: Sequence[temporalio.api.common.v1.Payload] = (source)

Details from the last heartbeat.

Retry policy for the activity.

More detailed breakdown if status is RUNNING.

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.