1
0
mirror of https://github.com/newnius/YAO-scheduler.git synced 2025-12-15 08:16:43 +00:00

update fair

This commit is contained in:
2020-05-28 10:59:20 +08:00
parent e618b0894e
commit a195e7b543
2 changed files with 11 additions and 4 deletions

View File

@@ -277,6 +277,9 @@ func (scheduler *SchedulerFair) AcquireResource(job Job) []NodeStatus {
}(res)
}
go func() {
scheduler.UpdateQuota()
}()
return res
}
@@ -296,7 +299,9 @@ func (scheduler *SchedulerFair) ReleaseResource(job Job, agent NodeStatus) {
}
scheduler.resourceAllocationsMu.Unlock()
}(agent)
scheduler.UpdateQuota()
go func() {
scheduler.UpdateQuota()
}()
}
/* allocate quota to queues */