1
0
mirror of https://github.com/newnius/YAO-scheduler.git synced 2025-12-13 07:46:43 +00:00
This commit is contained in:
2020-05-05 16:06:44 +08:00
parent f34b157e0b
commit 8f4401a5bd

View File

@@ -424,7 +424,7 @@ func (scheduler *SchedulerFair) AcquireResource(job Job, task Task, nodes []Node
if task.NumberGPU <= pool.TotalGPU-scheduler.UsingGPU-reserved {
flag = true
}
if len(candidates) == 0 && !flag {
if len(candidates) == 0 && flag {
allocationType = 2
for cur := start; ; {
if _, ok := locks[cur.ID]; !ok {