Skip to content

Commit

Permalink
Bugfix: before_fork should get passed the job
Browse files Browse the repository at this point in the history
  • Loading branch information
defunkt committed Aug 7, 2010
1 parent f144aad commit 3139fac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/resque/worker.rb
Expand Up @@ -112,7 +112,7 @@ def work(interval = 5, &block)

if not @paused and job = reserve
log "got: #{job.inspect}"
run_hook :before_fork
run_hook :before_fork, job
working_on job

if @child = fork
Expand Down

0 comments on commit 3139fac

Please sign in to comment.