Scheduler: stop iterating over workers when candidate worker is found (#220)
This commit is contained in:
parent
60948e14fe
commit
772336a7bd
|
|
@ -150,6 +150,8 @@ func (scheduler *Scheduler) schedulingLoopIteration() error {
|
|||
affectedWorkers[worker.Name] = true
|
||||
|
||||
workerToResources.Add(worker.Name, unscheduledVM.Resources)
|
||||
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue