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-05-03 11:29:49 +08:00
parent a4c75a7065
commit d8e24a0ba1

View File

@ -162,12 +162,12 @@ func (scheduler *SchedulerFair) Start() {
scheduler.schedulingMu.Lock()
scheduler.schedulingJobsCnt--
scheduler.schedulingMu.Unlock()
}
scheduler.queueMu.Unlock()
go func() {
scheduler.UpdateNextQueue()
}()
}
scheduler.queueMu.Unlock()
}
}()
/* schedule capacity queues */
@ -180,6 +180,7 @@ func (scheduler *SchedulerFair) Start() {
continue
}
log.Info(scheduler.queueUsingGPU)
log.Info(scheduler.queuesSchedulingCnt)
scheduler.queuesUsingGPUMu.Lock()
if cnt, ok := scheduler.queuesSchedulingCnt[t[0].Group]; ok && cnt > 0 {
scheduler.queuesUsingGPUMu.Unlock()