We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 772bc9e commit 0a82f76Copy full SHA for 0a82f76
app/routers/system.py
@@ -60,8 +60,8 @@ async def _measure_worker_health(request_coro) -> WorkerHealth:
60
@router.get("/workers/health", response_model=WorkersHealth)
61
async def get_workers_health(_: AdminDetails = Depends(get_current)):
62
if not is_nats_enabled():
63
- unavailable = WorkerHealth(status="unavailable", error="NATS is disabled")
64
- return WorkersHealth(scheduler=unavailable, node=unavailable)
+ disabled = WorkerHealth(status="disabled")
+ return WorkersHealth(scheduler=disabled, node=disabled)
65
66
timeout = 5.0
67
scheduler_task = _measure_worker_health(scheduler_nats_client.request("health_check", {}, timeout))
0 commit comments