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_by_jid, #delete_by_value, #each, #fetch, #find_job, #schedule
Methods inherited from SortedSet
Constructor Details
#initialize ⇒ DeadSet
Returns a new instance of DeadSet.
598 599 600 |
# File 'lib/sidekiq/api.rb', line 598 def initialize super 'dead' end |
Class Method Details
.max_jobs ⇒ Object
608 609 610 |
# File 'lib/sidekiq/api.rb', line 608 def self.max_jobs Sidekiq.[:dead_max_jobs] end |
.timeout ⇒ Object
612 613 614 |
# File 'lib/sidekiq/api.rb', line 612 def self.timeout Sidekiq.[:dead_timeout_in_seconds] end |
Instance Method Details
#retry_all ⇒ Object
602 603 604 605 606 |
# File 'lib/sidekiq/api.rb', line 602 def retry_all while size > 0 each(&:retry) end end |