class OkComputer::ResqueFailureThresholdCheck
Attributes
threshold[RW]
Public Class Methods
new(threshold)
click to toggle source
Public: Initialize a check for a backed-up Resque queue
threshold - An Integer to compare the queue’s count against to consider
it backed up
# File lib/ok_computer/built_in_checks/resque_failure_threshold_check.rb, line 9 def initialize(threshold) self.threshold = Integer(threshold) self.name = "Resque Failed Jobs" end
Public Instance Methods
size()
click to toggle source
Public: The number of jobs in the check’s queue
# File lib/ok_computer/built_in_checks/resque_failure_threshold_check.rb, line 15 def size Resque::Failure.count end