Merge edbde8caeb into b1c5c9d060
This commit is contained in:
commit
d659ed29c4
|
|
@ -674,7 +674,7 @@ func (c *MPIJobController) syncHandler(key string) error {
|
|||
}
|
||||
}
|
||||
if launcher == nil {
|
||||
if mpiJob.Spec.LauncherCreationPolicy == kubeflow.LauncherCreationPolicyAtStartup || c.countReadyWorkerPods(worker) == len(worker) {
|
||||
if mpiJob.Spec.LauncherCreationPolicy == kubeflow.LauncherCreationPolicyAtStartup || (!isMPIJobSuspended(mpiJob) && c.countReadyWorkerPods(worker) == len(worker)) {
|
||||
launcher, err = c.kubeClient.BatchV1().Jobs(namespace).Create(context.TODO(), c.newLauncherJob(mpiJob), metav1.CreateOptions{})
|
||||
if err != nil {
|
||||
c.recorder.Eventf(mpiJob, corev1.EventTypeWarning, mpiJobFailedReason, "launcher pod created failed: %v", err)
|
||||
|
|
|
|||
Loading…
Reference in New Issue