Class: Sidekiq::DeadSet
Overview
Allows enumeration of dead jobs within Sidekiq.
Instance Attribute Summary
Attributes inherited from SortedSet
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ DeadSet
constructor
A new instance of DeadSet.
- #retry_all ⇒ Object
Methods inherited from JobSet
#delete, #each, #fetch, #find_job, #schedule
Methods inherited from SortedSet
Constructor Details
#initialize ⇒ DeadSet
Returns a new instance of DeadSet.
600 601 602 |
# File 'lib/sidekiq/api.rb', line 600 def initialize super 'dead' end |
Class Method Details
.max_jobs ⇒ Object
610 611 612 |
# File 'lib/sidekiq/api.rb', line 610 def self.max_jobs Sidekiq.[:dead_max_jobs] end |
.timeout ⇒ Object
614 615 616 |
# File 'lib/sidekiq/api.rb', line 614 def self.timeout Sidekiq.[:dead_timeout_in_seconds] end |
Instance Method Details
#retry_all ⇒ Object
604 605 606 607 608 |
# File 'lib/sidekiq/api.rb', line 604 def retry_all while size > 0 each(&:retry) end end |