Skip to content

Commit

Permalink
Merge branch 'zw0610-test-pr' into test-pr
Browse files Browse the repository at this point in the history
  • Loading branch information
hackerboy01 committed Nov 15, 2021
2 parents ce8ed51 + f52224c commit b1d50da
Show file tree
Hide file tree
Showing 3 changed files with 831 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/controller.v1/mpi/mpijob_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -639,11 +639,11 @@ func (r *MPIJobReconciler) UpdateJobStatus(job interface{}, replicas map[commonv
}

// Some workers are still running, leave a running condition.
msg := fmt.Sprintf("PyTorchJob %s is running.", mpiJob.Name)
msg := fmt.Sprintf("MPIJob %s is running.", mpiJob.Name)
commonutil.LoggerForJob(mpiJob).Infof(msg)

if err := commonutil.UpdateJobConditions(jobStatus, commonv1.JobRunning, commonutil.JobRunningReason, msg); err != nil {
commonutil.LoggerForJob(mpiJob).Error(err, "failed to update PyTorch Job conditions")
commonutil.LoggerForJob(mpiJob).Error(err, "failed to update MPIJob conditions")
return err
}

Expand Down
Loading

0 comments on commit b1d50da

Please sign in to comment.