Skip to content

Commit

Permalink
Matching the puts messages with the fork calls to the Worker Hooks.
Browse files Browse the repository at this point in the history
  • Loading branch information
redsquirrel authored and defunkt committed Mar 25, 2010
1 parent 9d973af commit f5e1720
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,7 @@ first time, you can add it in the initializer like so:
You can also run a hook before _every_ fork:

Resque.before_fork do |job|
puts "CALL ME ONCE BEFORE THE WORKER FORKS THE FIRST TIME"
puts "CALL ME BEFORE THE WORKER FORKS"
end

The `before_fork` hook will be run in the **parent** process. So, be
Expand All @@ -671,7 +671,7 @@ the worker.
And after forking:

Resque.after_fork do |job|
puts "CALL ME ONCE BEFORE THE WORKER FORKS THE FIRST TIME"
puts "CALL ME AFTER THE WORKER FORKS"
end

The `after_fork` hook will be run in the child process and is passed
Expand Down

0 comments on commit f5e1720

Please sign in to comment.