class ActivityExecutionDescription(ActivityExecution): (source)
Detailed information about an activity execution not started by a workflow.
| Method | has |
True if heartbeat details are available. Use heartbeat_details to retrieve them. |
| Method | has |
True if activity input is available. Use input to retrieve it. |
| Method | has |
True if last failure is available. Use last_failure to retrieve it. |
| Method | has |
True if activity outcome failure is available. Use outcome_failure to retrieve it. |
| Method | has |
True if activity result is available. Use result to retrieve it. |
| Async Method | heartbeat |
Returns details from the last heartbeat, or None if not available. |
| Async Method | input |
Returns activity input, or None if not available. |
| Async Method | last |
Returns failure from the last failed attempt, or None if not available. |
| Async Method | outcome |
Returns activity outcome failure, or None if not available. |
| Async Method | result |
Returns activity result, or None if not available. |
| Class Variable | attempt |
Current attempt number. |
| Class Variable | canceled |
Reason for cancellation, if cancel was requested. |
| Class Variable | close |
Time when the activity transitioned to a closed state. |
| Class Variable | current |
Time until the next retry, if applicable. |
| Class Variable | data |
Data converter used to convert raw payloads. By default it's the same as the client's data converter. |
| Class Variable | expiration |
The time at which the activity's schedule-to-close timeout expires. |
| Class Variable | heartbeat |
Configured heartbeat timeout of the activity. |
| Class Variable | last |
Time when the last attempt completed. |
| Class Variable | last |
The Worker Deployment Version this activity was dispatched to most recently. |
| 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 | next |
Time when the next attempt will be scheduled. |
| Class Variable | priority |
Priority metadata. |
| Class Variable | raw |
Underlying protobuf callbacks |
| Class Variable | raw |
Underlying protobuf info. |
| Class Variable | raw |
Raw input of the activity. Use input to decode. |
| Class Variable | raw |
Raw outcome of the activity. Use result or outcome_failure to decode. |
| Class Variable | retry |
Retry policy for the activity. |
| Class Variable | run |
More detailed breakdown if status is RUNNING. |
| Class Variable | schedule |
Configured schedule-to-close timeout of the activity. |
| Class Variable | schedule |
Configured schedule-to-start timeout of the activity. |
| Class Variable | start |
Time to wait before making the first activity task available for dispatch. |
| Class Variable | start |
Configured start-to-close timeout of the activity. |
| Class Variable | total |
Total number of heartbeats recorded across all attempts of this activity, including retries. |
| 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 | execution |
Duration from schedule to close time, only populated if closed. |
| Class Variable | execution |
The time at which the first activity task is made available for dispatch, computed as schedule time + start delay. |
| Class Variable | namespace |
Namespace of the activity (copied from calling client). |
| Class Variable | schedule |
Time the activity was originally scheduled. |
| 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. |
True if heartbeat details are available. Use heartbeat_details to retrieve them.
Always false if include_heartbeat_details was false in the ActivityHandle.describe call.
True if activity input is available. Use input to retrieve it.
Always false if include_input was false in the ActivityHandle.describe call.
True if last failure is available. Use last_failure to retrieve it.
Always false if include_last_failure was false in the ActivityHandle.describe call.
True if activity outcome failure is available. Use outcome_failure to retrieve it.
Activity outcome failure is only available if the activity has closed with a failure.
Use last_failure to retrieve failure of the most recent failed attempt of an activity that's still running or
that completed successfully.
Always false if include_outcome was false in the ActivityHandle.describe call.
True if activity result is available. Use result to retrieve it.
Activity result is only available if the activity has completed and was successful.
Always false if include_outcome was false in the ActivityHandle.describe call.
list[ type] | None = None) -> list[ Any] | None:
(source)
¶
Returns details from the last heartbeat, or None if not available.
Always None if include_heartbeat_details was false in the ActivityHandle.describe call.
Type hints can be provided to aid data conversion.
Returns activity input, or None if not available.
Always None if include_input was false in the ActivityHandle.describe call.
Type hints can be provided to aid data conversion.
Returns failure from the last failed attempt, or None if not available.
Always None if include_last_failure was false in the ActivityHandle.describe call.
Returns activity outcome failure, or None if not available.
Activity outcome failure is only available if the activity has closed with a failure.
Use last_failure to retrieve failure of the most recent failed attempt of an activity that's still running or
that completed successfully.
Always false if include_outcome was false in the ActivityHandle.describe call.
Returns activity result, or None if not available.
Activity result is only available if the activity has completed successfully.
Always false if include_outcome was false in the ActivityHandle.describe call.
Type hints can be provided to aid data conversion.
Data converter used to convert raw payloads. By default it's the same as the client's data converter.
Total number of heartbeats recorded across all attempts of this activity, including retries.
Zero if the activity has not sent any heartbeats or if the server didn't report heartbeat count.
temporalio.api.workflowservice.v1.DescribeActivityExecutionResponse, namespace: str, data_converter: temporalio.converter.DataConverter, **kwargs: Any) -> Self:
(source)
¶
Create from raw proto activity execution info.