mirror of
https://github.com/newnius/YAO-scheduler.git
synced 2025-12-15 16:16:44 +00:00
update
This commit is contained in:
@@ -176,12 +176,10 @@ func (scheduler *SchedulerFair) Start() {
|
|||||||
scheduler.queueMu.Lock()
|
scheduler.queueMu.Lock()
|
||||||
for q, t := range scheduler.queues {
|
for q, t := range scheduler.queues {
|
||||||
if len(t) == 0 || !InstanceOfGroupManager().groups[t[0].Group].Reserved {
|
if len(t) == 0 || !InstanceOfGroupManager().groups[t[0].Group].Reserved {
|
||||||
scheduler.queueMu.Unlock()
|
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
scheduler.queuesUsingGPUMu.Lock()
|
scheduler.queuesUsingGPUMu.Lock()
|
||||||
if cnt, ok := scheduler.queuesSchedulingCnt[t[0].Group]; ok && cnt > 0 {
|
if cnt, ok := scheduler.queuesSchedulingCnt[t[0].Group]; ok && cnt > 0 {
|
||||||
scheduler.queueMu.Unlock()
|
|
||||||
scheduler.queuesUsingGPUMu.Unlock()
|
scheduler.queuesUsingGPUMu.Unlock()
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
@@ -199,7 +197,6 @@ func (scheduler *SchedulerFair) Start() {
|
|||||||
scheduler.queuesUsingGPUMu.Unlock()
|
scheduler.queuesUsingGPUMu.Unlock()
|
||||||
|
|
||||||
if pool.TotalGPU-scheduler.UsingGPU-scheduler.allocatingGPU*13/10 < 0 {
|
if pool.TotalGPU-scheduler.UsingGPU-scheduler.allocatingGPU*13/10 < 0 {
|
||||||
scheduler.queueMu.Unlock()
|
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user