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