From fe9c82994d54c3797fa9d26448d515986fff2375 Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Tue, 2 Jun 2020 11:40:16 +0800 Subject: [PATCH] DEV: Actually disconnect from Redis connections after fork. --- lib/discourse.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/discourse.rb b/lib/discourse.rb index 84175589723..27c28e199d5 100644 --- a/lib/discourse.rb +++ b/lib/discourse.rb @@ -657,7 +657,7 @@ module Discourse Discourse.cache.reconnect Logster.store.redis.reconnect # shuts down all connections in the pool - Sidekiq.redis_pool.shutdown { |c| nil } + Sidekiq.redis_pool.shutdown { |conn| conn.close } # re-establish Sidekiq.redis = sidekiq_redis_config