From 30b7d04778070d6be5a1b4a3a429ab84c125c642 Mon Sep 17 00:00:00 2001 From: Taha Yassine Kraiem Date: Thu, 30 Mar 2023 21:53:55 +0100 Subject: [PATCH] feat(chalice): changed health-check for EE --- ee/api/chalicelib/core/health.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ee/api/chalicelib/core/health.py b/ee/api/chalicelib/core/health.py index 796b67e35..31087a1e1 100644 --- a/ee/api/chalicelib/core/health.py +++ b/ee/api/chalicelib/core/health.py @@ -139,8 +139,6 @@ def get_health(): "clickhouse": __check_database_ch }, "ingestionPipeline": { - **({"redis": __check_redis} if config("REDIS_STRING", default=None) is not None - and len(config("REDIS_STRING")) > 0 else {}), # "kafka": __check_kafka "kafka": __always_healthy }, @@ -163,6 +161,8 @@ def get_health(): "storage": __check_be_service("storage") } } + if config("REDIS_STRING", default=None) is not None and len(config("REDIS_STRING")) > 0: + health_map["ingestionPipeline"]["redis"] = __check_redis for parent_key in health_map.keys(): for element_key in health_map[parent_key]: health_map[parent_key][element_key] = health_map[parent_key][element_key]()