class OkComputer::ResqueFailureThresholdCheck
Attributes
Public Class Methods
Source
# 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: Initialize a check for a backed-up Resque queue
threshold - An Integer to compare the queue’s count against to consider
it backed up
Public Instance Methods
Source
# File lib/ok_computer/built_in_checks/resque_failure_threshold_check.rb, line 15 def size Resque::Failure.count end
Public: The number of jobs in the check’s queue