mirror of
https://github.com/docusealco/docuseal
synced 2026-11-08 23:42:32 -05:00
fix sidekiq embedded redis connection
This commit is contained in:
1 parent
89bf83febb
commit
0c7f4e5b43
1 file changed
+2
-1
@@ -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