class documentation

Info for an activity execution not started by a workflow, from list response.

Warning

This API is experimental.

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.
activity_id: str = (source)

Activity ID.

activity_run_id: str | None = (source)

Run ID of the activity.

activity_type: str = (source)

Type name of the activity.

Time the activity reached a terminal status, if closed.

execution_duration: timedelta | None = (source)

Duration from scheduled to close time, only populated if closed.

namespace: str = (source)

Namespace of the activity (copied from calling client).

scheduled_time: datetime = (source)

Time the activity was originally scheduled.

state_transition_count: int | None = (source)

Number of state transitions, if available.

Current status of the activity.

task_queue: str = (source)

Task queue the activity was scheduled on.

Current set of search attributes if any.

def _from_raw_info(cls, info: temporalio.api.activity.v1.ActivityExecutionListInfo, namespace: str) -> Self: (source)

Create from raw proto activity list info.