ActionPhase
Represents the execution phase of a Flyte action (run).
Attributes
| Attribute | Type | Description |
|---|---|---|
| QUEUED | str = "queued" | Action is waiting to be scheduled. |
| WAITING_FOR_RESOURCES | str = "waiting_for_resources" | Action is waiting for compute resources to become available. |
| INITIALIZING | str = "initializing" | Action is being initialized and prepared for execution. |
| RUNNING | str = "running" | Action is currently executing. |
| SUCCEEDED | str = "succeeded" | Action completed successfully. |
| FAILED | str = "failed" | Action failed during execution. |
| ABORTED | str = "aborted" | Action was manually aborted by a user. |
| TIMED_OUT | str = "timed_out" | Action exceeded its timeout limit and was terminated. |
Methods
is_terminal()
@property
def is_terminal(self) -> 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()
def to_protobuf_name(self) -> str: ...
Convert to protobuf enum name format.
Returns
| Type | Description |
|---|---|
str | Protobuf enum name (e.g., "ACTION_PHASE_QUEUED") |
to_protobuf_value()
def to_protobuf_value(self) -> int: ...
Convert to protobuf enum integer value.
Returns
| Type | Description |
|---|---|
int | Protobuf enum integer value |
from_protobuf()
@classmethod
def from_protobuf(cls, pb_phase: Any) -> "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 |