Method: OkComputer::ResqueDownCheck#check

Defined in:
lib/ok_computer/built_in_checks/resque_down_check.rb

#checkObject

Public: Check whether Resque workers are working



4
5
6
7
8
9
10
11
# File 'lib/ok_computer/built_in_checks/resque_down_check.rb', line 4

def check
  if queued? and not working?
    mark_failure
    mark_message "Resque is DOWN. No workers are working the queue."
  else
    mark_message "Resque is working"
  end
end