Module: Resque

Defined in:
lib/resque-multi-job-forks.rb

Defined Under Namespace

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.



81
82
83
# File 'lib/resque-multi-job-forks.rb', line 81

def self.before_child_exit(&block)
  block ? (@before_child_exit = block) : @before_child_exit
end

.before_child_exit=(before_child_exit) ⇒ Object

Set the before_child_exit proc.



86
87
88
# File 'lib/resque-multi-job-forks.rb', line 86

def self.before_child_exit=(before_child_exit)
  @before_child_exit = before_child_exit
end