Skip to content

Commit

Permalink
Fix redis race condition on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
mperham committed Mar 10, 2015
1 parent 2f71d53 commit dd58018
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/sidekiq/cli.rb
Expand Up @@ -68,6 +68,11 @@ def run

fire_event(:startup)

Sidekiq.redis do |conn|
# touch the connection pool so it is created before we
# launch the actors.
end

if !options[:daemon]
logger.info 'Starting processing, hit Ctrl-C to stop'
end
Expand Down

0 comments on commit dd58018

Please sign in to comment.