Class: Resque::Worker
- Inherits:
-
Object
- Object
- Resque::Worker
- Defined in:
- lib/adaptor/resque_adaptor.rb
Instance Method Summary collapse
-
#resque_shutdown! ⇒ Object
Alias the shutdown! as called on the INT and TERM traps that Resque assigned, .
- #shutdown! ⇒ Object
Instance Method Details
#resque_shutdown! ⇒ Object
Alias the shutdown! as called on the INT and TERM traps that Resque assigned,
So that the surrounding Daemon can also receive the instruction to stop.
13 |
# File 'lib/adaptor/resque_adaptor.rb', line 13 alias_method :resque_shutdown!, :shutdown! |
#shutdown! ⇒ Object
15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/adaptor/resque_adaptor.rb', line 15 def shutdown! # # Call the original Worker shutdown! # And further raise the instruction to stop. # resque_shutdown! raise LanGrove::DaemonStopException.new end |