DEV: Actually disconnect from Redis connections after fork.
This commit is contained in:
parent
ade60b0cbc
commit
fe9c82994d
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue