Skip to content

Commit

Permalink
Fix PreemptedAtPriority in fairshare preemption (#4025)
Browse files Browse the repository at this point in the history
Signed-off-by: JamesMurkin <[email protected]>
  • Loading branch information
JamesMurkin authored Nov 5, 2024
1 parent 0c82392 commit 0f87b66
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 0f87b66

Please sign in to comment.