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.



79
80
81
# File 'lib/resque-multi-job-forks.rb', line 79

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.



84
85
86
# File 'lib/resque-multi-job-forks.rb', line 84

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