Skip to main content

is_terminal_phase

Return true if the phase is terminal.

def is_terminal_phase(
phase: TaskExecution.Phase
) - > bool

Return true if the phase is terminal.

Parameters

NameTypeDescription
phaseTaskExecution.PhaseThe current phase of a task execution to check for terminal status.

Returns

TypeDescription
boolTrue if the phase is one of the terminal states (SUCCEEDED, ABORTED, FAILED), False otherwise.