mirror of
https://github.com/newnius/YAO-scheduler.git
synced 2025-06-07 14:21:55 +00:00
update
This commit is contained in:
parent
9cd0719377
commit
c4b38c56ab
@ -704,9 +704,12 @@ func (pool *ResourcePool) acquireResource(job Job) []NodeStatus {
|
||||
pool.batchJobs[job.Name] = job
|
||||
pool.batchMu.Unlock()
|
||||
for {
|
||||
pool.batchMu.Lock()
|
||||
if _, ok := pool.batchAllocations[job.Name]; ok {
|
||||
pool.batchMu.Unlock()
|
||||
break
|
||||
} else {
|
||||
pool.batchMu.Unlock()
|
||||
time.Sleep(time.Millisecond * 100)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user