Health Check API
Check the health status of the async jobs server
Check the health status of the async jobs server.
Response
ResponseField
stringServer health status. Returns healthy when the server is operational.
curl http://127.0.0.1:8005/healthimport httpx
response = httpx.get("http://127.0.0.1:8005/health")
if response.status_code == 200:
health = response.json()
print(f"Server status: {health['status']}")
else:
print("Server is not responding")curl http://127.0.0.1:8005/health{
"status": "healthy"
}Usage
Use this endpoint for:
- Load balancer health checks
- Kubernetes liveness/readiness probes
- Monitoring and alerting systems
Kubernetes Example
apiVersion: v1
kind: Pod
spec:
containers:
- name: async-jobs
image: praisonai/jobs-server
livenessProbe:
httpGet:
path: /health
port: 8005
initialDelaySeconds: 10
periodSeconds: 30
readinessProbe:
httpGet:
path: /health
port: 8005
initialDelaySeconds: 5
periodSeconds: 10