Class: Roundhouse::DeadSet

Inherits:
JobSet show all
Defined in:
lib/roundhouse/api.rb

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

#initializeDeadSet

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_jobsObject



660
661
662
# File 'lib/roundhouse/api.rb', line 660

def self.max_jobs
  Roundhouse.options[:dead_max_jobs]
end

.timeoutObject



664
665
666
# File 'lib/roundhouse/api.rb', line 664

def self.timeout
  Roundhouse.options[:dead_timeout_in_seconds]
end

Instance Method Details

#retry_allObject



654
655
656
657
658
# File 'lib/roundhouse/api.rb', line 654

def retry_all
  while size > 0
    each(&:retry)
  end
end