1
0
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:
Newnius 2020-05-28 21:30:40 +08:00
parent 93dbb21de7
commit e9d7ca7319

View File

@ -107,6 +107,7 @@ func (scheduler *SchedulerFair) Start() {
/* phase 2: borrow */
if bestQueue == "" && scheduler.enableBorrow {
log.Info("start borrow phase")
/* firstly, check if quota sum can run a job */
totalGPU := 0
for _, quota := range scheduler.queuesQuota {
@ -168,6 +169,8 @@ func (scheduler *SchedulerFair) Start() {
}
}
} else {
bestQueue = ""
}
}