mirror of
https://github.com/newnius/YAO-scheduler.git
synced 2025-06-07 14:21:55 +00:00
update
This commit is contained in:
parent
a4c75a7065
commit
d8e24a0ba1
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user