mirror of
https://github.com/newnius/YAO-scheduler.git
synced 2025-06-07 22:31:55 +00:00
update
This commit is contained in:
parent
e521ba4378
commit
d4c953cd8a
@ -968,11 +968,17 @@ func (pool *ResourcePool) doAcquireResource(job Job) []NodeStatus {
|
|||||||
pool.attach(t.UUID, task.Job)
|
pool.attach(t.UUID, task.Job)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
flag := false
|
||||||
for i := range job.Tasks {
|
for i := range job.Tasks {
|
||||||
if job.Tasks[i].ID == task.ID {
|
if job.Tasks[i].ID == task.ID {
|
||||||
ress[i] = res
|
ress[i] = res
|
||||||
|
flag = true
|
||||||
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if !flag {
|
||||||
|
log.Warn("Unable to find task, ", res)
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user