Skip to content

Commit 1a2e91b

Browse files
authored
Update podgroup.go
Signed-off-by: GonzaloSaez <[email protected]>
1 parent 62a822c commit 1a2e91b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/controller/podgroup.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ func calPGMinResource(minMember *int32, mpiJob *kubeflow.MPIJob, pcLister schedu
361361
// When using runLauncherAsWorker, there may be no worker.
362362
replicas += *order[1].Replicas
363363
}
364-
if minMember != nil && *order[0].Replicas+*order[1].Replicas > *minMember {
364+
if minMember != nil && replicas > *minMember {
365365
// If the launcher and workers have the same priority, it treats workers as a lower priority.
366366
if order[0].priority == order[1].priority {
367367
wIndex := order.getWorkerIndex()

0 commit comments

Comments
 (0)