Class: Roundhouse::DeadSet
Overview
Allows enumeration of dead jobs within Roundhouse.
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
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.options[:dead_max_jobs]
end
|
.timeout ⇒ Object
664
665
666
|
# File 'lib/roundhouse/api.rb', line 664
def self.timeout
Roundhouse.options[: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
|