class Resqued::Config::AfterFork
A config handler that executes the ‘after_fork` block.
after_fork do |resque_worker| # Runs in each worker. end
Public Class Methods
new(options = {})
click to toggle source
Public.
# File lib/resqued/config/after_fork.rb, line 12 def initialize(options = {}) @resque_worker = options.fetch(:worker) end
Public Instance Methods
after_fork() { |resque_worker| ... }
click to toggle source
DSL: execute the ‘after_fork` block.
# File lib/resqued/config/after_fork.rb, line 17 def after_fork yield @resque_worker end