MCPcopy Create free account
hub / github.com/TaskingAI/TaskingAI / api_health_check

Function api_health_check

backend/app/routes/manage/manage.py:19–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17 response_model=BaseEmptyResponse,
18)
19async def api_health_check():
20 from app.database import redis_conn, postgres_pool
21
22 if not await redis_conn.health_check():
23 raise HTTPException(status_code=500, detail="Redis health check failed.")
24 if not await postgres_pool.health_check():
25 raise HTTPException(status_code=500, detail="Postgres health check failed.")
26 return BaseEmptyResponse()
27
28
29@router.get(

Callers

nothing calls this directly

Calls 2

BaseEmptyResponseClass · 0.90
health_checkMethod · 0.45

Tested by

no test coverage detected