Module: Resque

Defined in:
lib/resque-multi-job-forks.rb,
lib/resque/plugins/multi_job_forks/rss_reader.rb

Defined Under Namespace

Modules: Plugins Classes: Worker

Class Method Summary collapse

Class Method Details

.before_child_exit(&block) ⇒ Object

the ‘before_child_exit` hook will run in the child process right before the child process terminates

Call with a block to set the hook. Call with no arguments to return the hook.



199
200
201
# File 'lib/resque-multi-job-forks.rb', line 199

def self.before_child_exit(&block)
  block ? register_hook(:before_child_exit, block) : hooks(:before_child_exit)
end

.before_child_exit=(before_child_exit) ⇒ Object

Set the before_child_exit proc.



204
205
206
# File 'lib/resque-multi-job-forks.rb', line 204

def self.before_child_exit=(before_child_exit)
  register_hook(:before_child_exit, block)
end