diff --git a/server.py b/server.py index 3fcf506..adfd695 100644 --- a/server.py +++ b/server.py @@ -338,14 +338,12 @@ async def gitea_api_call( async def health_check(request): - """Health check endpoint for Docker/Kubernetes.""" - is_healthy = await client.health_check() - if is_healthy: - return JSONResponse({"status": "ok", "gitea_url": GITEA_URL}) - return JSONResponse( - {"status": "unhealthy", "message": "Cannot connect to Gitea"}, - status_code=503, - ) + """Health check endpoint for Docker/Kubernetes. + + This is a liveness probe - it just confirms the server is running. + Gitea connectivity is validated when tools are actually called. + """ + return JSONResponse({"status": "ok", "gitea_url": GITEA_URL}) @asynccontextmanager