mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
Reverse dead sorting, fixes #1802
This commit is contained in:
parent
76e4e200c5
commit
a53c884c2e
2 changed files with 2 additions and 1 deletions
|
@ -3,6 +3,7 @@
|
|||
|
||||
- Update how Sidekiq eager loads Rails application code [#1791, jonleighton]
|
||||
- Change logging timestamp to show milliseconds.
|
||||
- Reverse sorting of Dead tab so newer jobs are listed first [#1802]
|
||||
|
||||
3.1.4
|
||||
-----------
|
||||
|
|
|
@ -83,7 +83,7 @@ module Sidekiq
|
|||
|
||||
get '/morgue' do
|
||||
@count = (params[:count] || 25).to_i
|
||||
(@current_page, @total_size, @dead) = page("dead", params[:page], @count)
|
||||
(@current_page, @total_size, @dead) = page("dead", params[:page], @count, :reverse => true)
|
||||
@dead = @dead.map {|msg, score| Sidekiq::SortedEntry.new(nil, score, msg) }
|
||||
erb :morgue
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue