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
| Name | Type | Description |
|---|---|---|
| ctx | context.Context | The context for the request, used for cancellation and deadlines. |
| pod | *v1.Pod | The Kubernetes Pod object whose status needs to be demystified. |
| info | pluginsCore.TaskInfo | Additional task-related information, such as logs, that can influence the demystified phase. |
Returns
| Type | Description |
|---|---|
pluginsCore.PhaseInfo, error | The Flyte phase information representing the Pod's status and an error if one occurred during demystification. |