Class: Sidekiq::DeadSet
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
628
629
630
|
# File 'lib/sidekiq/api.rb', line 628
def initialize
super 'dead'
end
|
Class Method Details
.max_jobs ⇒ Object
638
639
640
|
# File 'lib/sidekiq/api.rb', line 638
def self.max_jobs
Sidekiq.options[:dead_max_jobs]
end
|
.timeout ⇒ Object
642
643
644
|
# File 'lib/sidekiq/api.rb', line 642
def self.timeout
Sidekiq.options[:dead_timeout_in_seconds]
end
|
Instance Method Details
#retry_all ⇒ Object
632
633
634
635
636
|
# File 'lib/sidekiq/api.rb', line 632
def retry_all
while size > 0
each(&:retry)
end
end
|