Scheduler: stop iterating over workers when candidate worker is found (#220)

This commit is contained in:
Nikolay Edigaryev
2024-11-13 17:59:08 +04:00
committed by GitHub
parent 60948e14fe
commit 772336a7bd
@@ -150,6 +150,8 @@ func (scheduler *Scheduler) schedulingLoopIteration() error {
affectedWorkers[worker.Name] = true
workerToResources.Add(worker.Name, unscheduledVM.Resources)
break
}
}
}