Skip to main content

ActionPhase

Represents the execution phase of a Flyte action (run).

Attributes​

AttributeTypeDescription
QUEUEDstr = "queued"Action is waiting to be scheduled.
WAITING_FOR_RESOURCESstr = "waiting_for_resources"Action is waiting for compute resources to become available.
INITIALIZINGstr = "initializing"Action is being initialized and prepared for execution.
RUNNINGstr = "running"Action is currently executing.
SUCCEEDEDstr = "succeeded"Action completed successfully.
FAILEDstr = "failed"Action failed during execution.
ABORTEDstr = "aborted"Action was manually aborted by a user.
TIMED_OUTstr = "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​

TypeDescription
boolTrue if this is a terminal phase, False otherwise

to_protobuf_name()​

def to_protobuf_name(self) -> str: ...

Convert to protobuf enum name format.

Returns​

TypeDescription
strProtobuf enum name (e.g., "ACTION_PHASE_QUEUED")

to_protobuf_value()​

def to_protobuf_value(self) -> int: ...

Convert to protobuf enum integer value.

Returns​

TypeDescription
intProtobuf enum integer value

from_protobuf()​

@classmethod
def from_protobuf(cls, pb_phase: Any) -> "ActionPhase": ...

Create ActionPhase from protobuf phase value.

Parameters​

NameTypeDescription
pb_phaseAnyProtobuf ActionPhase enum value

Returns​

TypeDescription
[ActionPhase](actionphase.md?sid=flyte_models_actionphase)Corresponding ActionPhase enum member