1
0
mirror of https://github.com/newnius/YAO-scheduler.git synced 2025-06-07 14:21:55 +00:00
This commit is contained in:
Newnius 2020-06-15 14:20:06 +08:00
parent e521ba4378
commit d4c953cd8a

View File

@ -968,11 +968,17 @@ func (pool *ResourcePool) doAcquireResource(job Job) []NodeStatus {
pool.attach(t.UUID, task.Job)
}
flag := false
for i := range job.Tasks {
if job.Tasks[i].ID == task.ID {
ress[i] = res
flag = true
break
}
}
if !flag {
log.Warn("Unable to find task, ", res)
}
}
}