1
0
mirror of https://github.com/newnius/YAO-scheduler.git synced 2025-06-06 22:01:55 +00:00

update fair

This commit is contained in:
Newnius 2020-05-28 11:03:06 +08:00
parent a195e7b543
commit 7d7d42eeb8

View File

@ -330,6 +330,9 @@ func (scheduler *SchedulerFair) UpdateQuota() {
pool := InstanceOfResourcePool()
available := pool.TotalGPU - usingGPU - allocatedGPU
if available == 0 {
return
}
log.Info("Can allocate ", available)
log.Info("Before ")
for queue, quota := range scheduler.queuesQuota {