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, #each, #fetch, #find_job, #schedule

Methods inherited from SortedSet

#clear, #size

Constructor Details

#initializeDeadSet

Returns a new instance of DeadSet.



596
597
598
# File 'lib/sidekiq/api.rb', line 596

def initialize
  super 'dead'
end

Class Method Details

.max_jobsObject



606
607
608
# File 'lib/sidekiq/api.rb', line 606

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

.timeoutObject



610
611
612
# File 'lib/sidekiq/api.rb', line 610

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

Instance Method Details

#retry_allObject



600
601
602
603
604
# File 'lib/sidekiq/api.rb', line 600

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