Skip to content

Commit a302c11

Browse files
committed
hotfix connection pool 3
1 parent 1037438 commit a302c11

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

config/initializers/sidekiq.rb

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,16 @@
22

33
if redis_url
44
Sidekiq.configure_server do |config|
5-
config.redis = { url: redis_url }
5+
config.redis = {
6+
url: redis_url,
7+
pool_timeout: 5
8+
}
69
end
710

811
Sidekiq.configure_client do |config|
9-
config.redis = { url: redis_url }
12+
config.redis = {
13+
url: redis_url,
14+
pool_timeout: 5
15+
}
1016
end
1117
end

0 commit comments

Comments
 (0)