1
0
mirror of https://github.com/newnius/YAO-scheduler.git synced 2025-12-13 07:46:43 +00:00
This commit is contained in:
2020-05-03 11:06:53 +08:00
parent 08097b80bd
commit 0751608eb2

View File

@@ -176,12 +176,10 @@ func (scheduler *SchedulerFair) Start() {
scheduler.queueMu.Lock()
for q, t := range scheduler.queues {
if len(t) == 0 || !InstanceOfGroupManager().groups[t[0].Group].Reserved {
scheduler.queueMu.Unlock()
continue
}
scheduler.queuesUsingGPUMu.Lock()
if cnt, ok := scheduler.queuesSchedulingCnt[t[0].Group]; ok && cnt > 0 {
scheduler.queueMu.Unlock()
scheduler.queuesUsingGPUMu.Unlock()
continue
}
@@ -199,7 +197,6 @@ func (scheduler *SchedulerFair) Start() {
scheduler.queuesUsingGPUMu.Unlock()
if pool.TotalGPU-scheduler.UsingGPU-scheduler.allocatingGPU*13/10 < 0 {
scheduler.queueMu.Unlock()
continue
}