Skip to main content

ExtractCurrentCondition

ExtractCurrentCondition will return the first job condition for tensorflow/pytorch

def ExtractCurrentCondition(
jobConditions: []kubeflowv1.JobCondition
) - > kubeflowv1.JobCondition, error

ExtractCurrentCondition will return the first job condition for tensorflow/pytorch

Parameters

NameTypeDescription
jobConditions[]kubeflowv1.JobConditionA slice of kubeflowv1.JobCondition objects representing the conditions of a job. These conditions are sorted by LastTransitionTime in descending order to find the most recent one.

Returns

TypeDescription
kubeflowv1.JobCondition, errorThe most recent job condition with a status of v1.ConditionTrue, or an error if no such condition is found.