curl --request GET \
--url https://api.example.com/api/v1/workers/health{
"timestamp": "2025-01-15T14:00:00Z",
"scheduler": {
"running": true,
"jobs": [
{
"id": "invoice_generation",
"name": "Hourly Invoice Generation Check",
"next_run_time": "2025-01-15T15:00:00Z",
"trigger": "cron[hour='*', minute='0']"
}
]
},
"workers": {
"invoice_generator": {
"status": "healthy",
"consecutive_failures": 0,
"last_run": "2025-01-15T14:00:00Z"
},
"invoice_finalizer": {
"status": "healthy",
"consecutive_failures": 0,
"last_run": "2025-01-15T14:00:00Z"
}
},
"overall_status": "healthy"
}
Monitor the status of background workers and the job scheduler.
curl --request GET \
--url https://api.example.com/api/v1/workers/health{
"timestamp": "2025-01-15T14:00:00Z",
"scheduler": {
"running": true,
"jobs": [
{
"id": "invoice_generation",
"name": "Hourly Invoice Generation Check",
"next_run_time": "2025-01-15T15:00:00Z",
"trigger": "cron[hour='*', minute='0']"
}
]
},
"workers": {
"invoice_generator": {
"status": "healthy",
"consecutive_failures": 0,
"last_run": "2025-01-15T14:00:00Z"
},
"invoice_finalizer": {
"status": "healthy",
"consecutive_failures": 0,
"last_run": "2025-01-15T14:00:00Z"
}
},
"overall_status": "healthy"
}
{
"timestamp": "2025-01-15T14:00:00Z",
"scheduler": {
"running": true,
"jobs": [
{
"id": "invoice_generation",
"name": "Hourly Invoice Generation Check",
"next_run_time": "2025-01-15T15:00:00Z",
"trigger": "cron[hour='*', minute='0']"
}
]
},
"workers": {
"invoice_generator": {
"status": "healthy",
"consecutive_failures": 0,
"last_run": "2025-01-15T14:00:00Z"
},
"invoice_finalizer": {
"status": "healthy",
"consecutive_failures": 0,
"last_run": "2025-01-15T14:00:00Z"
}
},
"overall_status": "healthy"
}
Was this page helpful?