Class: Sidekiq::DeadSet

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

Overview

Allows enumeration of dead jobs within Sidekiq.

Instance Attribute Summary

Attributes inherited from SortedSet

#name

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from JobSet

#delete_by_jid, #delete_by_value, #each, #fetch, #find_job, #schedule

Methods inherited from SortedSet

#clear, #size

Constructor Details

#initializeDeadSet

Returns a new instance of DeadSet.



638
639
640
# File 'lib/sidekiq/api.rb', line 638

def initialize
  super 'dead'
end

Class Method Details

.max_jobsObject



648
649
650
# File 'lib/sidekiq/api.rb', line 648

def self.max_jobs
  Sidekiq.options[:dead_max_jobs]
end

.timeoutObject



652
653
654
# File 'lib/sidekiq/api.rb', line 652

def self.timeout
  Sidekiq.options[:dead_timeout_in_seconds]
end

Instance Method Details

#retry_allObject



642
643
644
645
646
# File 'lib/sidekiq/api.rb', line 642

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