Health Router
Health check and monitoring endpoints for service status.
health
Attributes
__all__ = ['router']
module-attribute
router = DiracxRouter(require_auth=False, include_in_schema=False)
module-attribute
Classes
Health Probes
probes
Health probes for use in Kubernetes and other orchestration systems.
Attributes
__all__ = ['router']
module-attribute
router = DiracxRouter(require_auth=False)
module-attribute
Classes
Functions
liveness(config)
async
Returns a simple status to indicate the app is running.
The method doesn't use the config but we want to depend on it so the check fails if the config expires without managing to refresh.
Source code in diracx-routers/src/diracx/routers/health/probes.py
ready(config, auth_db)
async
Readiness endpoint.
Checks if at least the configuration is loaded and the AuthDB database connection is available.
Source code in diracx-routers/src/diracx/routers/health/probes.py
startup(config, auth_db)
async
Startup endpoint.
Checks if at least the configuration is loaded and the AuthDB database connection is available.