Class: Sidekiq::DeadSet

Inherits:
JobSet show all
Defined in:
lib/sidekiq/api.rb

Overview

Allows enumeration of dead jobs within Sidekiq.

Constant Summary collapse

TIMEOUT =

6 months

180 * 24 * 60 * 60
MAX_JOBS =
10_000

Instance Attribute Summary

Attributes inherited from SortedSet

#name

Instance Method Summary collapse

Methods inherited from JobSet

#delete, #each, #fetch, #find_job, #schedule

Methods inherited from SortedSet

#clear, #size

Constructor Details

#initializeDeadSet

Returns a new instance of DeadSet.



526
527
528
# File 'lib/sidekiq/api.rb', line 526

def initialize
  super 'dead'
end

Instance Method Details

#retry_allObject



530
531
532
533
534
# File 'lib/sidekiq/api.rb', line 530

def retry_all
  while size > 0
    each(&:retry)
  end
end