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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user