mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
Fix redis race condition on startup
This commit is contained in:
parent
2f71d53877
commit
dd580188d0
1 changed files with 5 additions and 0 deletions
|
@ -68,6 +68,11 @@ module Sidekiq
|
||||||
|
|
||||||
fire_event(:startup)
|
fire_event(:startup)
|
||||||
|
|
||||||
|
Sidekiq.redis do |conn|
|
||||||
|
# touch the connection pool so it is created before we
|
||||||
|
# launch the actors.
|
||||||
|
end
|
||||||
|
|
||||||
if !options[:daemon]
|
if !options[:daemon]
|
||||||
logger.info 'Starting processing, hit Ctrl-C to stop'
|
logger.info 'Starting processing, hit Ctrl-C to stop'
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue