fix(redis): connect during health checks
This commit is contained in:
@@ -491,7 +491,9 @@ class RedisManager:
|
||||
|
||||
try:
|
||||
if not self.client:
|
||||
raise Exception("No Redis connection")
|
||||
logger.info("Redis health check has no active client; connecting now")
|
||||
if not self.connect():
|
||||
raise Exception("No Redis connection")
|
||||
|
||||
# Test connection
|
||||
self.client.ping()
|
||||
|
||||
Reference in New Issue
Block a user