Add worker health endpoints
This commit is contained in:
@@ -65,6 +65,8 @@ domain metadata fields in `input`, but the worker only reads chat fields such as
|
||||
(GPU, containers, vLLM and WhisperX live metrics) when configured.
|
||||
- `GET /healthz` returns process health.
|
||||
- `GET /readyz` checks PostgreSQL readiness.
|
||||
- Built-in workers expose open Kubernetes endpoints on `WORKER_HTTP_PORT`:
|
||||
`GET /healthz`, `GET /readyz` and `GET /worker/status`.
|
||||
|
||||
All `/api/v1/*` endpoints require `Authorization: Bearer <AI_SERVICE_TOKEN>`
|
||||
when `AI_SERVICE_TOKEN` is configured. Health and readiness endpoints stay open
|
||||
@@ -83,6 +85,8 @@ for Kubernetes probes.
|
||||
- `LLM_TIMEOUT`, default `5m`
|
||||
- `WHISPERX_URL`, WhisperX endpoint for transcription jobs
|
||||
- `WORKER_ID`, default hostname
|
||||
- `WORKER_HTTP_HOST`, default `0.0.0.0`
|
||||
- `WORKER_HTTP_PORT`, default `8081`
|
||||
- `WORKER_POLL_INTERVAL`, default `2s`
|
||||
- `WORKER_CLAIM_LIMIT`, default `4`
|
||||
- `WORKER_LEASE_TIMEOUT`, default `15m`
|
||||
|
||||
Reference in New Issue
Block a user