fix sidekiq embedded redis connection
This commit is contained in:
committed by
Pete Matsyburka
parent
89bf83febb
commit
0c7f4e5b43
@@ -1,6 +1,7 @@
|
|||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require 'puma/plugin'
|
require 'puma/plugin'
|
||||||
|
require 'redis_client'
|
||||||
|
|
||||||
# rubocop:disable Metrics
|
# rubocop:disable Metrics
|
||||||
Puma::Plugin.create do
|
Puma::Plugin.create do
|
||||||
@@ -68,7 +69,7 @@ Puma::Plugin.create do
|
|||||||
|
|
||||||
break
|
break
|
||||||
rescue RedisClient::CannotConnectError
|
rescue RedisClient::CannotConnectError
|
||||||
raise('Unable to connect to redis') if attempt > 10
|
raise('Unable to connect to redis') if attempt > 30
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user