Class: Roundhouse::DeadSet
- Defined in:
- lib/roundhouse/api.rb
Overview
Allows enumeration of dead jobs within Roundhouse.
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.
650 651 652 |
# File 'lib/roundhouse/api.rb', line 650 def initialize super 'dead' end |
Class Method Details
.max_jobs ⇒ Object
660 661 662 |
# File 'lib/roundhouse/api.rb', line 660 def self.max_jobs Roundhouse.[:dead_max_jobs] end |
.timeout ⇒ Object
664 665 666 |
# File 'lib/roundhouse/api.rb', line 664 def self.timeout Roundhouse.[:dead_timeout_in_seconds] end |
Instance Method Details
#retry_all ⇒ Object
654 655 656 657 658 |
# File 'lib/roundhouse/api.rb', line 654 def retry_all while size > 0 each(&:retry) end end |