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-24 01:41:19 +08:00
parent 72da84b3cc
commit e2e652560f

View File

@@ -252,7 +252,9 @@ func (pool *ResourcePool) update(node NodeStatus) {
if _, ok := pool.subscriptions[gpu.UUID]; ok {
for jobName := range pool.subscriptions[gpu.UUID] {
scheduler.QueryState(jobName)
go func(name string) {
scheduler.QueryState(name)
}(jobName)
}
}
}