Skip to content

Commit

Permalink
RAI: Change task ordering behavior to prioritize older tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
kpamnany authored and RAI CI (GitHub Action Automation) committed Oct 13, 2023
1 parent 4a7a720 commit 0bc3005
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/partr.jl
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ function multiq_sift_down(heap::taskheap, idx::Int32)
child = Int(child)
child > length(heap.tasks) && break
if isassigned(heap.tasks, child) &&
heap.tasks[child].priority < heap.tasks[idx].priority
heap.tasks[child].priority <= heap.tasks[idx].priority
t = heap.tasks[idx]
heap.tasks[idx] = heap.tasks[child]
heap.tasks[child] = t
Expand Down

0 comments on commit 0bc3005

Please sign in to comment.