1
0
mirror of https://github.com/newnius/YAO-scheduler.git synced 2025-06-07 14:21:55 +00:00
This commit is contained in:
Newnius 2020-06-11 20:05:36 +08:00
parent 5f8766cd62
commit 6c1c93b362

View File

@ -271,7 +271,7 @@ func (scheduler *SchedulerFair) Start() {
}
pool := InstanceOfResourcePool()
/* Make sure resource it enough */
if len(scheduler.schedulingJobs) == 0 || (numberGPUtmp*10+(scheduler.allocatingGPU)*13 <= (pool.TotalGPU-pool.UsingGPU)*10) {
if len(scheduler.schedulingJobs) == 0 || (numberGPUtmp*10+(scheduler.allocatingGPU)*10 <= (pool.TotalGPU-pool.UsingGPU)*10) {
flag = true
log.Info("Before, ", scheduler.queuesQuota[bestQueue])