From dd580188d084a207612408afdbaff992d76c0b4c Mon Sep 17 00:00:00 2001 From: Mike Perham Date: Tue, 10 Mar 2015 14:46:51 -0700 Subject: [PATCH] Fix redis race condition on startup --- lib/sidekiq/cli.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/sidekiq/cli.rb b/lib/sidekiq/cli.rb index f0a2650f..e096db55 100644 --- a/lib/sidekiq/cli.rb +++ b/lib/sidekiq/cli.rb @@ -68,6 +68,11 @@ module Sidekiq 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