Class: Resqued::Config::AfterExit
- Defined in:
- lib/resqued/config/after_exit.rb
Overview
A config handler that executes the ‘after_exit` block.
after_exit do |worker_summary|
# Runs in each listener.
end
Instance Method Summary collapse
-
#after_exit {|@worker_summary| ... } ⇒ Object
DSL: execute the ‘after_exit` block.
-
#initialize(options = {}) ⇒ AfterExit
constructor
Public.
Methods inherited from Base
Methods included from Dsl
#after_fork, #before_fork, #queue, #worker, #worker_factory, #worker_pool
Constructor Details
#initialize(options = {}) ⇒ AfterExit
Public.
12 13 14 |
# File 'lib/resqued/config/after_exit.rb', line 12 def initialize( = {}) @worker_summary = .fetch(:worker_summary) end |
Instance Method Details
#after_exit {|@worker_summary| ... } ⇒ Object
DSL: execute the ‘after_exit` block.
17 18 19 |
# File 'lib/resqued/config/after_exit.rb', line 17 def after_exit yield @worker_summary end |