mirror of
https://github.com/newnius/YAO-scheduler.git
synced 2025-06-07 14:21:55 +00:00
update fair
This commit is contained in:
parent
38d77f072e
commit
cfd78bbfe8
@ -177,7 +177,7 @@ func (scheduler *SchedulerFair) Start() {
|
|||||||
if least == 0 {
|
if least == 0 {
|
||||||
for queue, quota := range scheduler.queuesQuota {
|
for queue, quota := range scheduler.queuesQuota {
|
||||||
/* do not self borrow */
|
/* do not self borrow */
|
||||||
if queue == bestQueue || quota.NumberGPU < least {
|
if queue == bestQueue || quota.NumberGPU < minRequestGPU {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
quota.NumberGPU -= minRequestGPU
|
quota.NumberGPU -= minRequestGPU
|
||||||
|
Loading…
Reference in New Issue
Block a user