Skip to main content

DemystifyPodStatus

Demystifies the status of a Kubernetes Pod, translating its phase into a Flyte-specific PhaseInfo.

def DemystifyPodStatus(
ctx: context.Context,
pod: *v1.Pod,
info: pluginsCore.TaskInfo
) - > pluginsCore.PhaseInfo, error

Demystifies the status of a Kubernetes Pod, translating its current state into a Flyte-specific phase information. This function is used to determine the execution status of a task based on the underlying Pod's condition.

Parameters

NameTypeDescription
ctxcontext.ContextThe context for the request, used for cancellation and deadlines.
pod*v1.PodThe Kubernetes Pod object whose status needs to be demystified.
infopluginsCore.TaskInfoAdditional task-related information, such as logs, that can influence the demystified phase.

Returns

TypeDescription
pluginsCore.PhaseInfo, errorThe Flyte phase information representing the Pod's status and an error if one occurred during demystification.