Skip to main content

GetMPIPhaseInfo

No overview available.

def GetMPIPhaseInfo(
currentCondition: kubeflowv1.JobCondition,
occurredAt: time.Time,
taskPhaseInfo: pluginsCore.TaskInfo
) - > pluginsCore.PhaseInfo, error

Returns the phase of an MPI job based on its current condition. This function is used to translate Kubernetes job conditions into a standardized phase representation for Flyte.

Parameters

NameTypeDescription
currentConditionkubeflowv1.JobConditionThe current condition of the MPI job, indicating its state in the Kubernetes cluster.
occurredAttime.TimeThe timestamp when the current job condition occurred, used for queued phase information.
taskPhaseInfopluginsCore.TaskInfoAdditional information about the task associated with the MPI job, which is included in the returned phase.

Returns

TypeDescription
pluginsCore.PhaseInfo, errorThe determined phase information for the MPI job and an error if the phase could not be determined.