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
| Name | Type | Description |
|---|---|---|
| currentCondition | kubeflowv1.JobCondition | The current condition of the MPI job, indicating its status such as Created, Running, Succeeded, Failed, or Restarting. |
| occurredAt | time.Time | The timestamp when the current job condition occurred, used for queued phase information. |
| taskPhaseInfo | pluginsCore.TaskInfo | Additional information about the task associated with the MPI job, which is embedded within the returned phase information. |
Returns
| Type | Description |
|---|---|
pluginsCore.PhaseInfo, error | The phase information of the MPI job and an error if one occurred. |