GetPhaseInfo
Returns the phase of a Kubeflow job based on its current condition.
def GetPhaseInfo(
currentCondition: kubeflowv1.JobCondition,
occurredAt: time.Time,
taskPhaseInfo: pluginsCore.TaskInfo
) - > pluginsCore.PhaseInfo, error
Determines the current phase of a Kubeflow job based on its condition and returns corresponding phase information. This function is used to translate Kubeflow job states into a standardized phase representation.
Parameters
| Name | Type | Description |
|---|---|---|
| currentCondition | kubeflowv1.JobCondition | The current condition of the Kubeflow job, which includes its type, reason, and message. |
| occurredAt | time.Time | The timestamp when the current condition of the job was observed. |
| taskPhaseInfo | pluginsCore.TaskInfo | Additional information about the task associated with the Kubeflow job. |
Returns
| Type | Description |
|---|---|
pluginsCore.PhaseInfo, error | The determined phase information for the Kubeflow job and an error if the phase could not be determined. |