mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 10:44:24 +00:00
fix(proxy_server.py): improve /health/readiness endpoint to give more details on connected services
This commit is contained in:
parent
b061edf4d0
commit
30d738c83c
1 changed files with 2 additions and 2 deletions
|
@ -2480,9 +2480,9 @@ async def health_readiness():
|
|||
global prisma_client
|
||||
if prisma_client is not None: # if db passed in, check if it's connected
|
||||
if prisma_client.db.is_connected() == True:
|
||||
return {"status": "healthy"}
|
||||
return {"status": "healthy", "db": "connected"}
|
||||
else:
|
||||
return {"status": "healthy"}
|
||||
return {"status": "healthy", "db": "Not connected"}
|
||||
raise HTTPException(status_code=503, detail="Service Unhealthy")
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue