Skip to content

Commit

Permalink
Fix PreemptedAtPriority in fairshare preemption
Browse files Browse the repository at this point in the history
Signed-off-by: JamesMurkin <[email protected]>
  • Loading branch information
JamesMurkin committed Oct 25, 2024
1 parent 95fa3b2 commit 526ff91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/scheduler/nodedb/nodedb.go
Original file line number Diff line number Diff line change
Expand Up @@ -753,9 +753,9 @@ func (nodeDb *NodeDb) selectNodeForJobWithFairPreemption(txn *memdb.Txn, jctx *c
return nil, errors.WithStack(err)
}

priority, ok := nodeDb.GetScheduledAtPriority(evictedJctx.JobId)
priority, ok := nodeDb.GetScheduledAtPriority(job.JobSchedulingContext.JobId)
if !ok {
priority = evictedJctx.Job.PriorityClass().Priority
priority = job.JobSchedulingContext.Job.PriorityClass().Priority
}
if priority > maxPriority {
maxPriority = priority
Expand Down

0 comments on commit 526ff91

Please sign in to comment.