class Resqued::Config::AfterExit

A config handler that executes the ‘after_exit` block.

after_exit do |worker_summary|
  # Runs in each listener.
end

Public Class Methods

new(options = {}) click to toggle source

Public.

# File lib/resqued/config/after_exit.rb, line 12
def initialize(options = {})
  @worker_summary = options.fetch(:worker_summary)
end

Public Instance Methods

after_exit() { |worker_summary| ... } click to toggle source

DSL: execute the ‘after_exit` block.

# File lib/resqued/config/after_exit.rb, line 17
def after_exit
  yield @worker_summary
end