Skip to main content

convert_to_flyte_phase

Convert the state from the connector to the phase in flyte.

def convert_to_flyte_phase(
state: str
) - > TaskExecution.Phase

Convert the state from the connector to the phase in flyte.

Parameters

NameTypeDescription
statestrThe state string from the connector to be converted. This string is case-insensitive and will be normalized to lowercase for comparison.

Returns

TypeDescription
TaskExecution.PhaseThe corresponding Flyte task execution phase.