Method: Resque#queue_empty

Defined in:
lib/resque.rb

#queue_empty(&block) ⇒ Object

The ‘queue_empty` hook will be run in the parent process when the worker finds no more jobs in the queue and becomes idle.

Call with a block to register a hook. Call with no arguments to return all registered hooks.



296
297
298
# File 'lib/resque.rb', line 296

def queue_empty(&block)
  block ? register_hook(:queue_empty, block) : hooks(:queue_empty)
end