fastapi-health
fastapi-health copied to clipboard
Implement the Health Check API pattern on your FastAPI application! :rocket:
- Closes #21 @dvarrazzo Does this works for you?
If a condition function throws an exception, the health endpoint fails with a 500. I don't think this is the right thing to do for a function supposed to check...
I'm using inreleased version of this package app.add_api_route("/internal/health", HealthEndpoint(conditions=[live_condition]), ) app.add_api_route("/internal/ready", HealthEndpoint(conditions=[ready_condition]), ) **works** r = APIRouter() r.add_api_route("/internal/health", HealthEndpoint(conditions=[live_condition]), ) r.add_api_route("/internal/ready", HealthEndpoint(conditions=[ready_condition]), ) app.include_router(r) **fails** because it returns _ready_condition_ for...
Using a `functools.partial()` object in `health()` results in an error: ``` File "/usr/local/lib/python3.10/site-packages/fastapi_health/route.py", line 40, in health f"{condition.__name__}", AttributeError: 'functools.partial' object has no attribute '__name__' ``` you can use `condition.func.__name__`...
Hi there, So how do we use fastapi_health import health library for the checking the endpoints for different files. so I have 5 files in folder and all 5 of...
The health check module should implement the RFC draft for health check. The latest official version of the draft can be found here: https://datatracker.ietf.org/doc/html/draft-inadarei-api-health-check-06 To participate in the development of...
I don't see how I can get this to return a 503 (fail) + a custom detail as to why a particular check failed. Seems that if I return any...
Is it worth waiting for the updated version?