From 0c7f4e5b43995faa3d44e906f5d3452b3168d6e0 Mon Sep 17 00:00:00 2001 From: Alex Turchyn Date: Mon, 25 May 2026 21:08:03 +0300 Subject: [PATCH] fix sidekiq embedded redis connection --- lib/puma/plugin/sidekiq_embed.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/puma/plugin/sidekiq_embed.rb b/lib/puma/plugin/sidekiq_embed.rb index 42ea96db..921be32c 100644 --- a/lib/puma/plugin/sidekiq_embed.rb +++ b/lib/puma/plugin/sidekiq_embed.rb @@ -1,6 +1,7 @@ # frozen_string_literal: true require 'puma/plugin' +require 'redis_client' # rubocop:disable Metrics Puma::Plugin.create do @@ -68,7 +69,7 @@ Puma::Plugin.create do break rescue RedisClient::CannotConnectError - raise('Unable to connect to redis') if attempt > 10 + raise('Unable to connect to redis') if attempt > 30 end end end