Class: Sidekiq::DeadSet

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

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.



463
464
465
# File 'lib/sidekiq/api.rb', line 463

def initialize
  super 'dead'
end

Instance Method Details

#retry_allObject



467
468
469
470
471
# File 'lib/sidekiq/api.rb', line 467

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