Poll-loop self-monitoring: last sweep time, jobs dispatched last round, total results consumed. The "stat strip" of the poller & collection-health widget.
const url = 'https://example.com/api/v1/poller-health';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/v1/poller-health \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Poll-loop counters since core started
A point-in-time view of [SchedulerStats] for the API.
object
Redis assignment-mirror rewrites issued since start (S18). Flat across steady-state sweeps — an unchanged working set skips the rewrite — so growth tracks real assignment churn.
Working-set deltas core has published to pollers since start (ADR-020).
Jobs published in the most recent round (legacy per-job dispatch only).
When the last poll round was dispatched (Unix ms), or None if none yet.
Pools served in legacy per-job mode in the most recent sweep (no live poller).
Pools served in working-set mode in the most recent sweep (a live poller owns them).
Total poll results consumed since start.
Working-set snapshots core has published to pollers since start (ADR-020).
Examplegenerated
{ "assignment_mirror_writes_total": 1, "deltas_published_total": 1, "jobs_last_round": 1, "last_sweep_unix_ms": 1, "pools_legacy": 1, "pools_working_set": 1, "results_total": 1, "snapshots_published_total": 1}No valid bearer token
The ADR-019 envelope every failure renders as. pub(crate) and schema-bearing so the OpenAPI
document can name one error shape for every endpoint (ADR-035) instead of leaving 4xx/5xx bodies
undescribed — a client that has to guess the failure shape ends up parsing the success shape and
reading undefined.
object
object
Stable machine-readable code. Clients branch on this, never on the message.
Operator-facing sentence. Safe to display; never carries an internal error’s own text.
Examplegenerated
{ "error": { "code": "example", "message": "example" }}Role lacks the View permission
The ADR-019 envelope every failure renders as. pub(crate) and schema-bearing so the OpenAPI
document can name one error shape for every endpoint (ADR-035) instead of leaving 4xx/5xx bodies
undescribed — a client that has to guess the failure shape ends up parsing the success shape and
reading undefined.
object
object
Stable machine-readable code. Clients branch on this, never on the message.
Operator-facing sentence. Safe to display; never carries an internal error’s own text.
Examplegenerated
{ "error": { "code": "example", "message": "example" }}Skeleton mode: no write side to read the scheduler from
The ADR-019 envelope every failure renders as. pub(crate) and schema-bearing so the OpenAPI
document can name one error shape for every endpoint (ADR-035) instead of leaving 4xx/5xx bodies
undescribed — a client that has to guess the failure shape ends up parsing the success shape and
reading undefined.
object
object
Stable machine-readable code. Clients branch on this, never on the message.
Operator-facing sentence. Safe to display; never carries an internal error’s own text.
Examplegenerated
{ "error": { "code": "example", "message": "example" }}