From 97922e124740750afc92e4c79127de7d8773a446 Mon Sep 17 00:00:00 2001 From: David Papp Date: Wed, 11 Dec 2024 09:52:36 +0100 Subject: [PATCH] feat: Add health endpoint for cache service --- services/cache/main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/services/cache/main.py b/services/cache/main.py index adea41f..ca06eed 100644 --- a/services/cache/main.py +++ b/services/cache/main.py @@ -68,6 +68,9 @@ class CacheData(BaseModel): def openshield_check_hit_func(cur_session_id, cache_session_ids, cache_questions, cache_answer): return cur_session_id in cache_session_ids +@app.get("/status/healthz") +async def health_check(): + return {"status": "healthy"} @app.post("/put") async def put_cache(cache_data: CacheData) -> str: