Skip to content

Commit 3139fac

Browse files
committed
Bugfix: before_fork should get passed the job
1 parent f144aad commit 3139fac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/resque/worker.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def work(interval = 5, &block)
112112

113113
if not @paused and job = reserve
114114
log "got: #{job.inspect}"
115-
run_hook :before_fork
115+
run_hook :before_fork, job
116116
working_on job
117117

118118
if @child = fork

0 commit comments

Comments
 (0)