From e6748868479040626beb377569acd2ed95d53421 Mon Sep 17 00:00:00 2001 From: Amber Date: Sat, 14 Jun 2025 19:08:23 +0100 Subject: [PATCH] update health endpoint --- README.md | 2 +- nephthys/utils/starlette.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c90c344..ffa62c7 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Slack Template +# Nephthys This is a Slack template for creating a great Slack app using Python and Starlette. diff --git a/nephthys/utils/starlette.py b/nephthys/utils/starlette.py index 0456b4b..67d66d4 100644 --- a/nephthys/utils/starlette.py +++ b/nephthys/utils/starlette.py @@ -23,10 +23,13 @@ async def health(req: Request): except Exception: slack_healthy = False + db_healthy = env.db.is_connected() + return JSONResponse( { "healthy": slack_healthy, "slack": slack_healthy, + "database": db_healthy, } )