Skip to content

Commit

Permalink
Merge pull request resque#801 from inlined/avoid-unnecessary-reconnects
Browse files Browse the repository at this point in the history
Keep the existing redis connection if fork fails
  • Loading branch information
steveklabnik committed Mar 6, 2013
2 parents e2c9f31 + 39b7a17 commit 9c3aa17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/resque/worker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9c3aa17

Please sign in to comment.