ActionPhase
Represents the execution phase of a Flyte action (run).
Actions progress through different phases during their lifecycle:
- Queued: Action is waiting to be scheduled
- Waiting for resources: Action is waiting for compute resources
- Initializing: Action is being initialized
- Running: Action is currently executing
- Succeeded: Action completed successfully
- Failed: Action failed during execution
- Aborted: Action was manually aborted
- Timed out: Action exceeded its timeout limit
This enum can be used for filtering runs and checking execution status.
Attributes
| Attribute | Type | Description |
|---|---|---|
| QUEUED | Action is waiting to be scheduled. | |
| WAITING_FOR_RESOURCES | Action is waiting for compute resources to become available. | |
| INITIALIZING | Action is being initialized and prepared for execution. | |
| RUNNING | Action is currently executing. | |
| SUCCEEDED | Action completed successfully. | |
| FAILED | Action failed during execution. | |
| ABORTED | Action was manually aborted by a user. | |
| TIMED_OUT | Action exceeded its timeout limit and was terminated. |
Methods
is_terminal()
@classmethod
def is_terminal() - > bool
Check if this phase represents a terminal (final) state. Terminal phases are: SUCCEEDED, FAILED, ABORTED, TIMED_OUT. Once an action reaches a terminal phase, it will not transition to any other phase.
Returns
| Type | Description |
|---|---|
bool | True if this is a terminal phase, False otherwise |
to_protobuf_name()
@classmethod
def to_protobuf_name() - > str
Convert to protobuf enum name format.
Returns
| Type | Description |
|---|---|
str | Protobuf enum name (e.g., "ACTION_PHASE_QUEUED") |
to_protobuf_value()
@classmethod
def to_protobuf_value() - > int
Convert to protobuf enum integer value.
Returns
| Type | Description |
|---|---|
int | Protobuf enum integer value |
from_protobuf()
@classmethod
def from_protobuf(
pb_phase: Any
) - > [ActionPhase](actionphase.md?sid=flyte_models_actionphase)
Create ActionPhase from protobuf phase value.
Parameters
| Name | Type | Description |
|---|---|---|
| pb_phase | Any | Protobuf ActionPhase enum value |
Returns
| Type | Description |
|---|---|
[ActionPhase](actionphase.md?sid=flyte_models_actionphase) | Corresponding ActionPhase enum member |