mirror of
https://github.com/newnius/YAO-scheduler.git
synced 2025-12-13 07:46:43 +00:00
update preempt
This commit is contained in:
@@ -76,6 +76,9 @@ func (scheduler *SchedulerPriority) Start() {
|
||||
lowest := preemptee.Priority - 1
|
||||
scheduler.historyMu.Lock()
|
||||
for _, job := range scheduler.history {
|
||||
if job.Status != Running {
|
||||
continue
|
||||
}
|
||||
if job.Priority < lowest {
|
||||
jobs = []Job{*job}
|
||||
lowest = job.Priority
|
||||
|
||||
Reference in New Issue
Block a user