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

This commit is contained in:
Nikolay Edigaryev 2024-11-13 14:59:08 +01:00 committed by GitHub
parent 60948e14fe
commit 772336a7bd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -150,6 +150,8 @@ func (scheduler *Scheduler) schedulingLoopIteration() error {
affectedWorkers[worker.Name] = true
workerToResources.Add(worker.Name, unscheduledVM.Resources)
break
}
}
}