Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Keep the existing redis connection if fork fails

  • Loading branch information...
commit 39b7a17b73ab79091cf39a63582abd537ca20145 1 parent cffe4a0
@inlined inlined authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/resque/worker.rb
View
2  lib/resque/worker.rb
@@ -150,7 +150,7 @@ def work(interval = 5.0, &block)
job.fail(DirtyExit.new($?.to_s)) if $?.signaled?
else
procline "Processing #{job.queue} since #{Time.now.to_i}"
- reconnect
+ reconnect unless @cant_fork
perform(job, &block)
end
done_working
Please sign in to comment.
Something went wrong with that request. Please try again.