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 information object.

Parameters

NameTypeDescription
currentConditionkubeflowv1.JobConditionThe current condition of the MPI job, indicating its status such as Created, Running, Succeeded, Failed, or Restarting.
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 embedded within the returned phase information.

Returns

TypeDescription
pluginsCore.PhaseInfo, errorThe phase information of the MPI job and an error if one occurred.