Method: OkComputer::ResqueDownCheck#queued?

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

#queued?Boolean

Public: Whether the given Resque queue has jobs

Returns a Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/ok_computer/built_in_checks/resque_down_check.rb', line 16

def queued?
  Resque.info.fetch(:pending) > 10
end