DEV: Actually disconnect from Redis connections after fork.

This commit is contained in:
Guo Xiang Tan 2020-06-02 11:40:16 +08:00
parent ade60b0cbc
commit fe9c82994d
No known key found for this signature in database
GPG Key ID: FBD110179AAC1F20
1 changed files with 1 additions and 1 deletions

View File

@ -657,7 +657,7 @@ module Discourse
Discourse.cache.reconnect Discourse.cache.reconnect
Logster.store.redis.reconnect Logster.store.redis.reconnect
# shuts down all connections in the pool # shuts down all connections in the pool
Sidekiq.redis_pool.shutdown { |c| nil } Sidekiq.redis_pool.shutdown { |conn| conn.close }
# re-establish # re-establish
Sidekiq.redis = sidekiq_redis_config Sidekiq.redis = sidekiq_redis_config