1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00

Disable redis-rb’s reconnect attempts which can lead to duplicate command execution, fixes #3303

This commit is contained in:
Mike Perham 2017-01-09 09:46:35 -08:00
parent 39843fc102
commit 2749c12b88

View file

@ -67,7 +67,8 @@ module Sidekiq
opts.delete(:network_timeout)
end
opts[:driver] = opts[:driver] || 'ruby'
opts[:driver] ||= 'ruby'
opts[:reconnect_attempts] ||= 0
opts
end