mirror of
https://github.com/tiennm99/litellm.git
synced 2026-08-06 02:23:35 +00:00
fix(proxy_server.py): improve /health/readiness endpoint to give more details on connected services
This commit is contained in:
@@ -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")
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user