Skip to main content

DemystifyFailure

DemystifyFailure resolves the various Kubernetes pod failure modes to determine the most appropriate course of action.

def DemystifyFailure(
ctx: context.Context,
status: v1.PodStatus,
info: pluginsCore.TaskInfo,
primaryContainerName: string
) - > pluginsCore.PhaseInfo, error

Resolves various Kubernetes pod failure modes to determine the most appropriate course of action, identifying whether a failure is system-retryable or user-retryable.

Parameters

NameTypeDescription
ctxcontext.ContextThe context for the operation, used for cancellation and tracing.
statusv1.PodStatusThe Kubernetes PodStatus object containing information about the pod's current state and any termination details.
infopluginsCore.TaskInfoAdditional task-specific information used to enrich the failure details.
primaryContainerNamestringThe name of the primary container within the pod, used to specifically identify system-level SIGKILL terminations.

Returns

TypeDescription
pluginsCore.PhaseInfo, errorA PhaseInfo object indicating the failure phase (system-retryable or user-retryable) and an error if one occurred during processing.