mirror of
https://github.com/newnius/YAO-scheduler.git
synced 2025-12-13 07:46:43 +00:00
update
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user