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 job conditions to evaluate. These conditions are sorted by LastTransitionTime in descending order to find the most recent 'True' condition.

Returns

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