Class: Resque::Worker

Inherits:
Object
  • Object
show all
Defined in:
lib/resque/hooks/before_unregister_worker.rb

Direct Known Subclasses

APN::Sender

Instance Method Summary collapse

Instance Method Details

#unregister_workerObject

Wrapper for original unregister_worker method which adds a before hook before_unregister_worker to be executed if present.



10
11
12
13
# File 'lib/resque/hooks/before_unregister_worker.rb', line 10

def unregister_worker
  run_hook(:before_unregister_worker, self) 
  unregister_worker_without_before_hook
end

#unregister_worker_without_before_hookObject



6
# File 'lib/resque/hooks/before_unregister_worker.rb', line 6

alias_method :unregister_worker_without_before_hook, :unregister_worker