mirror of
https://github.com/newnius/YAO-scheduler.git
synced 2025-06-07 22:31:55 +00:00
update fair
This commit is contained in:
parent
93dbb21de7
commit
e9d7ca7319
@ -107,6 +107,7 @@ func (scheduler *SchedulerFair) Start() {
|
|||||||
|
|
||||||
/* phase 2: borrow */
|
/* phase 2: borrow */
|
||||||
if bestQueue == "" && scheduler.enableBorrow {
|
if bestQueue == "" && scheduler.enableBorrow {
|
||||||
|
log.Info("start borrow phase")
|
||||||
/* firstly, check if quota sum can run a job */
|
/* firstly, check if quota sum can run a job */
|
||||||
totalGPU := 0
|
totalGPU := 0
|
||||||
for _, quota := range scheduler.queuesQuota {
|
for _, quota := range scheduler.queuesQuota {
|
||||||
@ -168,6 +169,8 @@ func (scheduler *SchedulerFair) Start() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
} else {
|
||||||
|
bestQueue = ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user