Skip to content

Commit

Permalink
feat: Add health endpoint for cache service
Browse files Browse the repository at this point in the history
  • Loading branch information
pigri committed Dec 11, 2024
1 parent ee68c9a commit 97922e1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions services/cache/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 97922e1

Please sign in to comment.