feat(chalice): changed health-check for EE
This commit is contained in:
parent
4083da3e64
commit
30b7d04778
1 changed files with 2 additions and 2 deletions
|
|
@ -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]()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue