REST API¶
The webserver’s API ([webserver] port, 8080), generated from its OpenAPI description (schema/openapi.json). The schedr CLI uses it. Actions answer 202 with a command: the master applies it, and GET /api/v1/commands/{command_id} shows its decision.
Operations¶
GET /api/v1/backfills/{backfill_id}¶
A backfill, with its runs by state (schedr runs backfill prints its ID).
Parameter |
In |
Type |
Description |
|---|---|---|---|
|
path |
string |
The backfill’s ID |
Answers: 200 BackfillView, 400 ErrorBody, 404 ErrorBody.
POST /api/v1/backfills/{backfill_id}/cancel¶
Cancel a backfill (schedr runs cancel --backfill, decision 402): its queued and running runs; the finished ones stay as they are. Applied by the master; poll the command.
Parameter |
In |
Type |
Description |
|---|---|---|---|
|
header (optional) |
string |
A key of the client’s for this request: sent again with it, it is the command stored the first time (B140) |
|
path |
string |
The backfill’s ID |
Answers: 202 CommandView, 400 ErrorBody.
GET /api/v1/changes¶
What changed, as it happens: run, dag, workers and refresh events (see the module documentation).
Answers: 200.
GET /api/v1/commands/{command_id}¶
A command and the master’s decision about it.
Parameter |
In |
Type |
Description |
|---|---|---|---|
|
path |
string |
The command’s ID |
Answers: 200 CommandView, 404 ErrorBody.
GET /api/v1/connections¶
Each DAG root’s connections in its current code (decision 211): name, type, the file defining it, why one can’t be used, and the DAGs and tasks declaring it; never a value. A task declaring a connection no file defines lists it too, refused.
Answers: 200 ConnectionList.
POST /api/v1/connections/check¶
Render connections on a worker (schedr connections check, decision 174): each secret they name present or missing, never a value. The command’s result fills in as the workers answer: poll it until no job is running.
Parameter |
In |
Type |
Description |
|---|---|---|---|
|
header (optional) |
string |
A key of the client’s for this request: sent again with it, it is the command stored the first time (B140) |
Body: CheckConnectionsRequest.
Answers: 202 CommandView, 400 ErrorBody.
POST /api/v1/connections/{name}/test¶
Open a connection on a worker and run its check (schedr connections test, decisions 198-200), beside the tasks. The command’s result fills in when the worker answers.
Parameter |
In |
Type |
Description |
|---|---|---|---|
|
header (optional) |
string |
A key of the client’s for this request: sent again with it, it is the command stored the first time (B140) |
|
path |
string |
The connection’s name |
Body: TestConnectionRequest.
Answers: 202 CommandView, 400 ErrorBody.
GET /api/v1/dags¶
Every DAG not removed.
Answers: 200 DagList.
GET /api/v1/dags/{dag_id}¶
One DAG.
Parameter |
In |
Type |
Description |
|---|---|---|---|
|
path |
string |
The DAG’s ID |
Answers: 200 DagView, 404 ErrorBody.
GET /api/v1/dags/{dag_id}/backfills¶
A DAG’s backfills, newest first (the 50 newest), with their runs by state (decision 403).
Parameter |
In |
Type |
Description |
|---|---|---|---|
|
path |
string |
The DAG’s ID |
Answers: 200 BackfillList, 404 ErrorBody.
POST /api/v1/dags/{dag_id}/backfills¶
Create a backfill (schedr runs backfill, decisions 363, 364, 400-404): a run per fire time of the range with no successful, queued or running run (every one with all), oldest first, behind the other kinds of runs. Applied by the master; the command’s result has the counts and the backfill’s ID (its own).
Parameter |
In |
Type |
Description |
|---|---|---|---|
|
header (optional) |
string |
A key of the client’s for this request: sent again with it, it is the command stored the first time (B140) |
|
path |
string |
The DAG’s ID |
Body: BackfillRequest.
Answers: 202 CommandView, 400 ErrorBody.
GET /api/v1/dags/{dag_id}/memory¶
Each task’s p95 peak memory over its attempts of the last 30 days, against its limit: closest to it first (decision 467).
Parameter |
In |
Type |
Description |
|---|---|---|---|
|
path |
string |
The DAG’s ID |
Answers: 200 DagMemoryList, 404 ErrorBody.
POST /api/v1/dags/{dag_id}/pause¶
Pause a DAG: the scheduler creates no runs of it (optionally cancelling those in progress). Applied by the master; poll the command for the decision.
Parameter |
In |
Type |
Description |
|---|---|---|---|
|
header (optional) |
string |
A key of the client’s for this request: sent again with it, it is the command stored the first time (B140) |
|
path |
string |
The DAG’s ID |
Body: PauseRequest.
Answers: 202 CommandView, 400 ErrorBody.
GET /api/v1/dags/{dag_id}/runs¶
A DAG’s runs, newest first.
Parameter |
In |
Type |
Description |
|---|---|---|---|
|
path |
string |
The DAG’s ID |
|
query (optional) |
timestamp |
Only the runs for this moment ( |
|
query (optional) |
integer |
At most this many (default 50, at most 500). |
Answers: 200 RunList, 404 ErrorBody.
POST /api/v1/dags/{dag_id}/runs¶
Start a manual run (schedr runs trigger). Applied by the master; poll the command for the decision and the run’s ID.
Parameter |
In |
Type |
Description |
|---|---|---|---|
|
header (optional) |
string |
A key of the client’s for this request: sent again with it, it is the command stored the first time (B140) |
|
path |
string |
The DAG’s ID |
Body: TriggerRequest.
Answers: 202 CommandView, 400 ErrorBody.
POST /api/v1/dags/{dag_id}/sensors/{sensor}/switch-on¶
Switch a wait step back on, forgetting its strikes. Applied by the master; poll the command for the decision.
Parameter |
In |
Type |
Description |
|---|---|---|---|
|
header (optional) |
string |
A key of the client’s for this request |
|
path |
string |
The DAG’s ID |
|
path |
string |
The wait step’s task ID |
Answers: 202 CommandView, 400 ErrorBody.
GET /api/v1/dags/{dag_id}/tasks/{task_id}/memory¶
A task’s last ended attempts’ peak memory, all its runs and instances (decision 467).
Parameter |
In |
Type |
Description |
|---|---|---|---|
|
path |
string |
The DAG’s ID |
|
path |
string |
The task’s ID |
Answers: 200 AttemptMemoryList, 404 ErrorBody.
GET /api/v1/dags/{dag_id}/trigger¶
A DAG’s trigger: 404 for a DAG without one.
Parameter |
In |
Type |
Description |
|---|---|---|---|
|
path |
string |
The DAG’s ID |
Answers: 200 TriggerView, 404 ErrorBody.
GET /api/v1/dags/{dag_id}/trigger/events¶
What a DAG’s trigger found, newest received first.
Parameter |
In |
Type |
Description |
|---|---|---|---|
|
path |
string |
The DAG’s ID |
|
query (optional) |
integer |
How many, 50 by default and 500 at most. |
|
query (optional) |
timestamp |
Those after the one last listed: its |
|
query (optional) |
string |
And its |
Answers: 200 EventList, 400 ErrorBody.
POST /api/v1/dags/{dag_id}/trigger/restart¶
Start a DAG’s trigger again from its bookmark, whatever stopped it. Applied by the master; poll the command for the decision.
Parameter |
In |
Type |
Description |
|---|---|---|---|
|
header (optional) |
string |
A key of the client’s |
|
path |
string |
The DAG’s ID |
Answers: 202 CommandView, 400 ErrorBody.
POST /api/v1/dags/{dag_id}/trigger/skip¶
Pass the run an @trigger(wait_for=...) is called for and keeps failing on, so its next call gets the next run (decision 353); refused while a call of it runs. Applied by the master; poll the command for the decision.
Parameter |
In |
Type |
Description |
|---|---|---|---|
|
header (optional) |
string |
A key of the client’s |
|
path |
string |
The DAG’s ID |
Answers: 202 CommandView, 400 ErrorBody.
POST /api/v1/dags/{dag_id}/trigger/switch-on¶
Switch a DAG’s trigger back on, forgetting its strikes. Applied by the master; poll the command for the decision.
Parameter |
In |
Type |
Description |
|---|---|---|---|
|
header (optional) |
string |
A key of the client’s |
|
path |
string |
The DAG’s ID |
Answers: 202 CommandView, 400 ErrorBody, 404 ErrorBody.
POST /api/v1/dags/{dag_id}/unpause¶
Unpause a DAG. Applied by the master; poll the command for the decision.
Parameter |
In |
Type |
Description |
|---|---|---|---|
|
header (optional) |
string |
A key of the client’s for this request: sent again with it, it is the command stored the first time (B140) |
|
path |
string |
The DAG’s ID |
Answers: 202 CommandView, 400 ErrorBody.
GET /api/v1/deployment¶
The deployment this webserver serves, as nodes (decisions 121-123): this webserver, the masters heard from in the last 30 s (the leader first; standbys too), and every worker, each with its effective configuration as the node masked it (secrets never in clear).
Answers: 200 DeploymentView.
GET /api/v1/events¶
The events posted, newest first, their data masked.
Parameter |
In |
Type |
Description |
|---|---|---|---|
|
query (optional) |
string |
Only those of this name. |
|
query (optional) |
integer |
How many, 50 by default and 500 at most. |
Answers: 200 NamedEventList.
POST /api/v1/events¶
Post an event: each post is one, a repeat of a name and key too; a trigger starts one run per key, a waiting step matches one posted since its run started. Sent again with the same Idempotency-Key, it is the event stored the first time.
Parameter |
In |
Type |
Description |
|---|---|---|---|
|
header (optional) |
string |
A key of the client’s for this request: sent again with it, it is the event stored the first time |
Body: PostEventRequest.
Answers: 200 NamedEventView, 201 NamedEventView, 400 ErrorBody, 413 ErrorBody, 422 ErrorBody.
GET /api/v1/import-errors¶
The files of each DAG root’s current code that failed to import (decision 66). A DAG defined in such a file keeps its last good version (still listed) but is held: no run is created and manual triggers are refused until the file is fixed (decision 72). A timeout or a runner that died holds nothing: the file is parsed again (72.2). Fixing the file and syncing the root makes the entry go.
Answers: 200 ImportErrorList.
GET /api/v1/metrics/memory¶
Every process’s memory together over a range, in buckets (decision 462’s sparkline).
Parameter |
In |
Type |
Description |
|---|---|---|---|
|
query (optional) |
string |
|
|
query (optional) |
string |
One process’s only (its ID). |
Answers: 200 MemoryTotals, 400 ErrorBody.
GET /api/v1/metrics/samples¶
Each process’s memory and CPU over a range, in buckets: averages and peaks, its container’s limit, and a worker’s parts (decisions 464, 465).
Parameter |
In |
Type |
Description |
|---|---|---|---|
|
query (optional) |
string |
|
|
query (optional) |
string |
One process’s only (its ID). |
Answers: 200 SampleSeriesList, 400 ErrorBody.
GET /api/v1/metrics/tasks¶
The attempts of a range in buckets: how many ended, by how they ended, and the start latency of those started, as p50 and p95 (decision 494).
Parameter |
In |
Type |
Description |
|---|---|---|---|
|
query (optional) |
string |
|
Answers: 200 TaskFlowList, 400 ErrorBody.
GET /api/v1/runs¶
Runs of every DAG, newest triggered first (then by ID); filtered by DAG and state, paged with before and before_run (the last listed run’s triggered_at and ID).
Parameter |
In |
Type |
Description |
|---|---|---|---|
|
query (optional) |
string |
Only this DAG’s runs. |
|
query (optional) |
string |
Only the runs of DAGs whose ID holds this, in any case ( |
|
query (optional) |
string |
Only runs in this state: |
|
query (optional) |
timestamp |
Only runs triggered before this moment: the last listed run’s |
|
query (optional) |
string |
With |
|
query (optional) |
integer |
At most this many (default 50, at most 500). |
Answers: 200 RunList, 400 ErrorBody.
GET /api/v1/runs/{run_id}¶
A run with its tasks.
Parameter |
In |
Type |
Description |
|---|---|---|---|
|
path |
string |
The run’s ID |
Answers: 200 RunDetail, 404 ErrorBody.
POST /api/v1/runs/{run_id}/cancel¶
Cancel a run (schedr runs cancel). Applied by the master; poll the command for the decision.
Parameter |
In |
Type |
Description |
|---|---|---|---|
|
header (optional) |
string |
A key of the client’s for this request: sent again with it, it is the command stored the first time (B140) |
|
path |
string |
The run’s ID |
Answers: 202 CommandView, 400 ErrorBody.
GET /api/v1/runs/{run_id}/commands¶
The commands about a run, oldest first: the trigger that made it, and cancelling it or cancelling or retrying its tasks, with the master’s decisions.
Parameter |
In |
Type |
Description |
|---|---|---|---|
|
path |
string |
The run’s ID |
Answers: 200 CommandList, 404 ErrorBody.
GET /api/v1/runs/{run_id}/dag¶
The DAG a run ran with: its version’s DAG JSON (tasks, dependencies, settings), for its graph.
Parameter |
In |
Type |
Description |
|---|---|---|---|
|
path |
string |
The run’s ID |
Answers: 200 table, 404 ErrorBody.
GET /api/v1/runs/{run_id}/resources¶
A run’s resources, each with its setup, cleanup, users and state (decision 340).
Parameter |
In |
Type |
Description |
|---|---|---|---|
|
path |
string |
The run’s ID |
Answers: 200 ResourceList, 404 ErrorBody.
GET /api/v1/runs/{run_id}/resources/{resource}¶
One resource of a run, by its name (decision 340).
Parameter |
In |
Type |
Description |
|---|---|---|---|
|
path |
string |
The run’s ID |
|
path |
string |
The resource: its setup’s task ID |
Answers: 200 ResourceView, 404 ErrorBody.
GET /api/v1/runs/{run_id}/tasks/{task_id}/attempts¶
The attempts of a run’s task, oldest first.
Parameter |
In |
Type |
Description |
|---|---|---|---|
|
path |
string |
The run’s ID |
|
path |
string |
The task’s ID |
|
query (optional) |
integer |
The instance, from 0 (a mapped task only). For an output, none gives the mapped task’s whole list; for a cancel, the whole task; attempts, logs and a retry need it. |
Answers: 200 AttemptList, 400 ErrorBody, 404 ErrorBody.
GET /api/v1/runs/{run_id}/tasks/{task_id}/attempts/{try_number}/log¶
A part of an attempt’s log, read from the worker that ran it; read on from next to follow a running task. 404 when the attempt has no log (yet), or the worker no longer has it; 503 when the worker is gone or can’t be reached.
Parameter |
In |
Type |
Description |
|---|---|---|---|
|
path |
string |
The run’s ID |
|
path |
string |
The task’s ID |
|
path |
integer |
The attempt’s try number |
|
query (optional) |
integer |
The first byte wanted (0 by default): the |
|
query (optional) |
integer |
At most this many bytes (1 MiB by default; between 4 bytes, one character, and that). |
|
query (optional) |
integer |
The instance of a mapped task, from 0 (required for one). |
Answers: 200 LogChunk, 404 ErrorBody, 503 ErrorBody.
POST /api/v1/runs/{run_id}/tasks/{task_id}/cancel¶
Cancel one task of a run (schedr tasks cancel): stopped if it runs, cancelled at once if it hasn’t started; the tasks downstream of it are cancelled. Applied by the master; poll the command for the decision.
Parameter |
In |
Type |
Description |
|---|---|---|---|
|
header (optional) |
string |
A key of the client’s for this request: sent again with it, it is the command stored the first time (B140) |
|
path |
string |
The run’s ID |
|
path |
string |
The task’s ID |
|
query (optional) |
integer |
The instance, from 0 (a mapped task only). For an output, none gives the mapped task’s whole list; for a cancel, the whole task; attempts, logs and a retry need it. |
Answers: 202 CommandView, 400 ErrorBody, 404 ErrorBody.
GET /api/v1/runs/{run_id}/tasks/{task_id}/output¶
A task’s stored output in a run, with its outcome; 404 while it has none.
Parameter |
In |
Type |
Description |
|---|---|---|---|
|
path |
string |
The run’s ID |
|
path |
string |
The task’s ID |
|
query (optional) |
integer |
The instance, from 0 (a mapped task only). For an output, none gives the mapped task’s whole list; for a cancel, the whole task; attempts, logs and a retry need it. |
Answers: 200 OutputView, 400 ErrorBody, 404 ErrorBody, 410 ErrorBody.
POST /api/v1/runs/{run_id}/tasks/{task_id}/retry¶
Retry an unschedulable task of an unfinished run (schedr tasks retry). Applied by the master; poll the command for the decision.
Parameter |
In |
Type |
Description |
|---|---|---|---|
|
header (optional) |
string |
A key of the client’s for this request: sent again with it, it is the command stored the first time (B140) |
|
path |
string |
The run’s ID |
|
path |
string |
The task’s ID |
|
query (optional) |
integer |
The instance, from 0 (a mapped task only). For an output, none gives the mapped task’s whole list; for a cancel, the whole task; attempts, logs and a retry need it. |
Answers: 202 CommandView, 400 ErrorBody, 404 ErrorBody.
GET /api/v1/sensors/switched-off¶
The wait steps switched off for getting their host killed too many times in a row (decision 338).
Answers: 200 SensorList.
GET /api/v1/triggers¶
Every DAG’s trigger.
Answers: 200 TriggerList.
GET /api/v1/workers¶
Every worker the master has seen, gone ones included.
Answers: 200 WorkerList.
POST /api/v1/workers/{worker_id}/drain¶
Drain a worker for maintenance (schedr workers drain): no new tasks, its running ones finish; kept across restarts until resumed. Applied by the master; poll the command for the decision.
Parameter |
In |
Type |
Description |
|---|---|---|---|
|
header (optional) |
string |
A key of the client’s for this request: sent again with it, it is the command stored the first time (B140) |
|
path |
string |
The worker’s ID |
Answers: 202 CommandView, 400 ErrorBody.
POST /api/v1/workers/{worker_id}/resume¶
Let a drained worker take tasks again (schedr workers resume). Applied by the master; poll the command for the decision.
Parameter |
In |
Type |
Description |
|---|---|---|---|
|
header (optional) |
string |
A key of the client’s for this request: sent again with it, it is the command stored the first time (B140) |
|
path |
string |
The worker’s ID |
Answers: 202 CommandView, 400 ErrorBody.
Schemas¶
AttemptList¶
A task’s attempts.
Field |
Type |
Description |
|---|---|---|
|
list of |
Oldest first. |
AttemptMemoryList¶
A task’s last ended attempts’ peak memory (decision 467): the task panel’s chart.
Field |
Type |
Description |
|---|---|---|
|
list of |
Its last ended attempts, all its runs and instances, the oldest first. |
|
integer |
Its memory budget in the DAG’s current version ( |
|
string |
The task. |
AttemptMemoryView¶
An ended attempt’s peak memory.
Field |
Type |
Description |
|---|---|---|
|
string |
The attempt. |
|
timestamp |
When it ended. |
|
integer |
Its instance of a mapped task; none for a task that isn’t mapped. |
|
integer |
Its peak memory (the watchdog’s PSS), in bytes; none when it wasn’t read. |
|
string |
Its run. |
|
string |
How it ended ( |
|
integer |
Its try. |
AttemptView¶
An attempt of a task.
Field |
Type |
Description |
|---|---|---|
|
timestamp |
When it was assigned. |
|
string |
Its ID. |
|
string |
The run a |
|
any |
|
|
boolean |
Whether its process dumped core (ended by a signal). |
|
integer |
How long it ran, measured by the worker (the timestamps come from the master’s wall clock, so don’t subtract them); none while it runs or for attempts ended by the master. |
|
timestamp |
When it ended. |
|
string |
The error kind schedr recognised. |
|
table |
The structured error summary (exception, message, traceback). |
|
integer |
The process’s exit code. |
|
integer |
The peak memory of its processes, sampled by the worker (about once a second); none when it wasn’t measured. |
|
string |
How the worker started it: |
|
timestamp |
When the worker started it. |
|
string |
How it ended ( |
|
integer |
Its try number. |
|
any |
|
|
string |
The worker it ran on. |
BackfillList¶
A DAG’s backfills, newest first.
Field |
Type |
Description |
|---|---|---|
|
list of |
The backfills. |
BackfillRequest¶
A backfill to create (schedr runs backfill, decisions 363, 364, 400-404): a run per fire time of [from, to] with no successful, queued or running run, oldest first.
Field |
Type |
Description |
|---|---|---|
|
boolean |
A run for every fire time of the range, not only the missing ones ( |
|
boolean |
Count only: the command’s result says what would be created, and nothing is. |
|
timestamp |
The range’s first moment (inclusive). |
|
table |
Values for every run’s parameters, as JSON, over the DAG’s defaults; checked once. |
|
timestamp |
Its last moment (inclusive); now if not given, and a later one ends at now. |
BackfillRunCounts¶
A backfill’s runs by state.
Field |
Type |
Description |
|---|---|---|
|
integer |
Cancelled. |
|
integer |
Failed. |
|
integer |
Waiting for |
|
integer |
Running. |
|
integer |
Succeeded. |
BackfillView¶
A backfill (decision 403).
Field |
Type |
Description |
|---|---|---|
|
boolean |
Whether every fire time got a run ( |
|
string |
Its ID (the command’s that created it). |
|
timestamp |
When. |
|
integer |
How many of them got a run; the others were skipped. |
|
string |
Its DAG. |
|
integer |
The fire times of its range. |
|
timestamp |
The range’s first moment. |
|
string |
Who asked for it. |
|
|
Its runs by state. |
|
timestamp |
Its last moment (now, when it was asked for one later). |
|
boolean |
Whether some of its runs are queued or running: what cancelling it would cancel. |
CheckConnectionsRequest¶
Connections to check on a worker (schedr connections check).
Field |
Type |
Description |
|---|---|---|
|
string |
One connection; all of the root’s if not given. |
|
string |
The root; every root with connections if not given. |
|
string |
The worker to run it on; one the master picks if not given. |
CleanupView¶
An attempt’s cleanup.
Field |
Type |
Description |
|---|---|---|
|
integer |
How long its tries ran, measured by the worker. |
|
string |
The error kind of its last failed try. |
|
table |
The structured error summary of its last failed try. |
|
list of tables |
The handles the attempt registered ( |
|
integer |
How many times it moved to another worker ( |
|
string |
How it ended ( |
|
integer |
The tries it made. |
CommandList¶
The commands about a run.
Field |
Type |
Description |
|---|---|---|
|
list of |
Oldest first. |
CommandView¶
A command: an action the master applies, then marks applied or rejected.
Field |
Type |
Description |
|---|---|---|
|
string |
Its ID; poll |
|
timestamp |
When the master decided it. |
|
string |
|
|
string |
Why it was rejected. |
|
timestamp |
When. |
|
string |
Who asked for it. |
|
table |
What it produced when applied, e.g. |
|
string |
|
ConnectionInfo¶
A connection, as its root’s current parse records it.
Field |
Type |
Description |
|---|---|---|
|
string |
The file defining it, relative to the root. |
|
string |
Its name. |
|
string |
Why it can’t be used: defined twice, invalid, or defined nowhere (a task declares it). |
|
string |
A typed connection’s type ( |
|
list of |
The DAGs whose tasks declare it, by DAG. |
ConnectionList¶
Each DAG root’s connections, in its current code (decision 211): what the UI lists, never a value.
Field |
Type |
Description |
|---|---|---|
|
list of |
By root. |
ConnectionUse¶
The tasks of one DAG declaring a connection.
Field |
Type |
Description |
|---|---|---|
|
string |
The DAG. |
|
list of strings |
Its tasks declaring it, in the DAG’s order. |
CoverageView¶
The minutes the deployment was sampled in a bucket.
Field |
Type |
Description |
|---|---|---|
|
timestamp |
The bucket’s start. |
|
integer |
Its minutes in which any process was sampled. |
DagList¶
The DAGs.
Field |
Type |
Description |
|---|---|---|
|
list of |
Every DAG not removed, in ID order. |
DagMemoryList¶
Each task’s p95 peak memory over its recent attempts against its limit (decision 467): the DAG page’s table.
Field |
Type |
Description |
|---|---|---|
|
timestamp |
Attempts ended since this (30 days before the request), of the DAG’s 1000 runs ended last since then and those still going, are counted. |
|
list of |
The tasks with such attempts: those with a limit closest to it first, then the others by their p95, highest first. |
DagView¶
A DAG.
Field |
Type |
Description |
|---|---|---|
|
list of |
Every place defining it, while it is in conflict (then it can’t run). |
|
string |
Its ID. |
|
string |
Its description. |
|
any |
|
|
list of |
The concurrency limits its current version sets, each with how many run now (decision 96): only on one DAG’s view ( |
|
any |
|
|
list of |
The run parameters its current version takes, as the UI’s trigger form shows them (decision 149): only on one DAG’s view, not in the list; none when it takes none. |
|
list of strings |
Its tags. |
|
table |
Its trigger as in DAG JSON. |
|
any |
|
|
list of strings |
What is wrong with its current version that shows only when a run reaches it: a connection a task declares that its root’s current files don’t define, or define twice (decision 179). Only on one DAG’s view, not in the list. |
DeploymentView¶
The deployment this webserver serves, as nodes (decisions 121-123): its own, its masters (leader and standbys) and its workers, each with its effective configuration, masked by the node itself before it left its process (no secret in clear).
Field |
Type |
Description |
|---|---|---|
|
list of anys |
The masters heard from lately: the leader (the lease’s holder) first. |
|
string |
Who this request was made as, as the webserver sees it ( |
|
|
The webserver answering (one of the deployment’s, if it has several). |
|
list of |
Every worker the master has seen, gone ones included. |
ErrorBody¶
An error.
Field |
Type |
Description |
|---|---|---|
|
string |
What went wrong. |
EventList¶
A trigger’s events.
Field |
Type |
Description |
|---|---|---|
|
list of |
Newest received first. |
EventView¶
An event a trigger found.
Field |
Type |
Description |
|---|---|---|
|
timestamp |
When it happened, if it said. |
|
any |
Its data, JSON of any kind. |
|
string |
Its key. |
|
timestamp |
When the master got it. |
HeldView¶
Why a DAG is held: its file’s import error. The error is the file’s, so every DAG of the file is held (decision 72.3).
Field |
Type |
Description |
|---|---|---|
|
string |
The error’s exception class name, e.g. |
|
string |
The error’s message. |
|
string |
The file, relative to its root. |
|
string |
What happened and what to do, for people: that the file failed (not only this DAG), why, and how to fix it. |
ImportErrorList¶
The import errors of each DAG root’s current code.
Field |
Type |
Description |
|---|---|---|
|
list of |
By root, then path. |
ImportErrorView¶
A file of a DAG root’s current code that failed to import (decision 66).
Field |
Type |
Description |
|---|---|---|
|
string |
The root’s content hash that was parsed. |
|
string |
The exception’s class name ( |
|
string |
The master that stored the parse; none when not known (stored before it was kept). |
|
string |
The message. |
|
timestamp |
When it was parsed. |
|
string |
The file, relative to the root. |
|
string |
The DAG root. |
|
string |
That worker’s schedr version. |
|
string |
The traceback’s last lines. |
|
string |
The worker that parsed it. |
LimitView¶
A concurrency limit and how many of what it limits run now: open attempts (assigned, not yet started, running, cleaning up), as the master counts them.
Field |
Type |
Description |
|---|---|---|
|
string |
|
|
integer |
How many run now: the DAG’s tasks, the task’s instances across runs, or, for |
|
string |
The task it is set on; none for |
|
integer |
Its value. |
LocationView¶
Where a DAG is defined.
Field |
Type |
Description |
|---|---|---|
|
string |
The file, relative to the root. |
|
string |
The DAG root. |
LogChunk¶
A part of an attempt’s log, read from the worker that ran it.
Field |
Type |
Description |
|---|---|---|
|
string |
The attempt. |
|
string |
The log’s text, whole lines only (a running attempt’s last line once it ends), with its secrets masked: a password in an address, a value after a name like |
|
integer |
The first byte of |
|
integer |
Where the next part starts: the byte after |
|
boolean |
Whether the attempt still runs (its log may grow). |
|
integer |
The log’s size when it was read. |
|
integer |
Its try number. |
|
string |
The worker it ran on (and that answered). |
MasterView¶
A master, leading or standing by.
MemoryPointView¶
A bucket’s total memory.
Field |
Type |
Description |
|---|---|---|
|
timestamp |
The bucket’s start. |
|
integer |
Every process’s whole memory together, in bytes. |
MemoryTotals¶
Every process’s memory together over a range (decision 462’s sparkline).
Field |
Type |
Description |
|---|---|---|
|
timestamp |
The range’s start. |
|
list of |
The whole memory, in bytes, of each bucket with samples, oldest first: the average of its minutes’. |
|
integer |
Each point’s width, in seconds. |
|
timestamp |
Its end: when it was asked. |
NamedEventList¶
Posted events.
Field |
Type |
Description |
|---|---|---|
|
list of |
Newest posted first. |
NamedEventView¶
An event posted through the API.
Field |
Type |
Description |
|---|---|---|
|
timestamp |
When it happened. |
|
any |
Its data, masked as an output is. |
|
string |
Its ID. |
|
string |
Its key. |
|
string |
Its name. |
|
timestamp |
When it was posted. |
|
string |
Who posted it. |
NodeUsageView¶
A schedr process’s memory and CPU, and its container’s (decision 463).
Field |
Type |
Description |
|---|---|---|
|
integer |
Its cgroup’s memory now; none outside a cgroup v2. |
|
integer |
Its container’s memory limit; none when unlimited. |
|
number |
CPU time used (user and system) since it started, in seconds. |
|
integer |
Resident memory, in bytes. |
NodeView¶
A process of the deployment.
Field |
Type |
Description |
|---|---|---|
|
table |
Its effective configuration, masked. |
|
string |
Its host. |
|
string |
The process (shared by a master and a worker in standalone). |
|
string |
Its schedr version. |
|
any |
OutputView¶
A task’s stored output in a run.
Field |
Type |
Description |
|---|---|---|
|
string |
The outcome the task finished with. |
|
any |
The value it returned, masked (decision 131: its texts’ secrets, and a field whose name has a word naming a secret); downstream tasks get it as stored. |
ParamFieldView¶
One field of a DAG’s run parameters, as a form shows it.
Field |
Type |
Description |
|---|---|---|
|
list of tables |
A |
|
table |
Its default as JSON, the form’s starting value ( |
|
one of |
How it is entered. |
|
string |
The field’s name, as a trigger’s values name it. |
|
boolean |
Whether it may be |
|
boolean |
Whether a trigger must give it (it has no default). |
|
boolean |
Whether its default and choices are withheld (decision 150): its name has a word naming a secret, or its default or a choice holds one. The form gives it an empty password input; left empty, the master uses the default. |
ParamKind¶
How a parameter is entered.
PartsPointView¶
A worker’s memory by part in a bucket, on average.
Field |
Type |
Description |
|---|---|---|
|
integer |
Its fork servers’. |
|
integer |
Its running tasks’. |
|
integer |
Its wait step hosts’. |
PauseRequest¶
Pausing a DAG.
Field |
Type |
Description |
|---|---|---|
|
boolean |
Also cancel its queued and running runs. |
PostEventRequest¶
An event to post (POST /api/v1/events, decision 354).
Field |
Type |
Description |
|---|---|---|
|
timestamp |
When it happened; now if not given. A run it starts is planned for it. |
|
any |
Its data, JSON of any kind; |
|
string |
Its key: a trigger starts one run per key, a waiting step matches its own key. |
|
string |
Its name, written as a DAG ID is. |
ProblemView¶
A problem a node has now (decision 129): shown on its node, yellow for a warning, red for an error.
Field |
Type |
Description |
|---|---|---|
|
boolean |
An error; a warning otherwise. |
|
string |
What it is, for people. |
ProcessSamplesView¶
A process’s points over a range.
Field |
Type |
Description |
|---|---|---|
|
integer |
Its container’s memory limit as its latest sample says; none when unlimited (or not in a container). |
|
boolean |
Whether it has ended: no sample within three of the master’s sample intervals before the samples were asked for (stopped, restarted as a new process, or lost). |
|
any |
|
|
list of |
Its buckets with samples, oldest first. |
|
string |
The process. |
|
table |
What it runs ( |
ResourceList¶
A run’s resources.
Field |
Type |
Description |
|---|---|---|
|
list of |
In the DAG’s order. |
ResourceView¶
A resource of a run: its setup, its cleanup and its users.
Field |
Type |
Description |
|---|---|---|
|
boolean |
Whether what follows its group waits for its cleanup. |
|
string |
Its cleanup’s task ID. |
|
string |
Its name: its setup’s task ID. |
|
string |
|
|
list of strings |
The tasks that use it, in the DAG’s order. |
RootConnections¶
One root’s connections.
Field |
Type |
Description |
|---|---|---|
|
list of |
By name: those its files define, and those its tasks declare without one. |
|
string |
The DAG root. |
RunBackfillView¶
A backfill run’s backfill and its place among the backfill’s runs, oldest first.
Field |
Type |
Description |
|---|---|---|
|
string |
The backfill’s ID. |
|
integer |
Its place, from 1. |
|
integer |
How many runs the backfill has. |
RunDetail¶
A run with its tasks.
Field |
Type |
Description |
|---|---|---|
|
list of strings |
The code hashes its attempts ran with, in the order first used. More than one: its tasks ran on different code (it changed during the run). |
|
table |
Its parameters as JSON, masked like a task’s output (decision 134); |
|
list of |
Its resources, in the DAG’s order (decision 275: each one’s state from its two tasks). |
|
|
The run. |
|
list of |
Its tasks, in task ID order. |
RunList¶
Runs.
Field |
Type |
Description |
|---|---|---|
|
list of |
Newest first: a DAG’s by |
RunView¶
A run.
Field |
Type |
Description |
|---|---|---|
|
any |
|
|
string |
The DAG. |
|
timestamp |
When it finished. |
|
string |
|
|
string |
A |
|
string |
The run whose |
|
timestamp |
The moment it is for. |
|
string |
Its ID (a UUIDv7). |
|
timestamp |
The start of its window, |
|
timestamp |
When it started running. |
|
string |
|
|
timestamp |
When it was created. |
|
string |
|
SamplePointView¶
A bucket of a process’s samples: averages and peaks.
Field |
Type |
Description |
|---|---|---|
|
timestamp |
The bucket’s start. |
|
integer |
Its container’s memory, on average; none outside a cgroup v2. |
|
integer |
Its container’s highest limit in the bucket; none when unlimited. |
|
integer |
The highest. |
|
number |
Cores used, on average; none before a second sample. |
|
number |
The highest minute’s. |
|
integer |
Its whole memory, in bytes, on average: itself and, for a worker, its fork servers, wait step hosts and running tasks. |
|
integer |
The highest. |
|
integer |
The minutes this process was sampled in the bucket: its averages’ weight in a deployment’s total (see [ |
|
any |
|
|
integer |
Resident memory, in bytes, on average: the process itself. |
|
integer |
The highest. |
SampleSeriesList¶
Samples of each process over a range (decisions 464, 465), in buckets: the Metrics page’s charts.
Field |
Type |
Description |
|---|---|---|
|
list of |
The minutes the deployment was sampled in each bucket (asked for every process): a deployment’s total in a bucket is its processes’ averages weighted by their minutes over these, so a process replaced within a bucket isn’t counted twice. |
|
timestamp |
The range’s start (the first bucket’s). |
|
list of |
Each process sampled in it, by ID. |
|
string |
The range asked: |
|
integer |
Each point’s width, in seconds. |
|
timestamp |
Its end: when it was asked. |
SensorList¶
The wait steps switched off.
Field |
Type |
Description |
|---|---|---|
|
list of |
By DAG and task. |
SensorView¶
A wait step switched off for getting its host killed too many times in a row (decision 338).
Field |
Type |
Description |
|---|---|---|
|
string |
Its DAG. |
|
string |
The wait step. |
|
integer |
Its host kills in a row. |
|
string |
When it was switched off (RFC 3339). |
TaskFlowList¶
The attempts of a range in buckets (decision 494): how many ended, by how, and how long those started took from their assignment.
Field |
Type |
Description |
|---|---|---|
|
list of |
Every bucket of the range, oldest first, empty ones included. |
|
timestamp |
The range’s start (the first bucket’s). |
|
string |
The range asked: |
|
integer |
Each point’s width, in seconds. |
|
timestamp |
Its end: when it was asked. |
TaskFlowView¶
One bucket’s attempts.
Field |
Type |
Description |
|---|---|---|
|
timestamp |
The bucket’s start. |
|
integer |
Those that failed: |
|
integer |
Their median time from assignment to start, in milliseconds (none: none started). |
|
integer |
Their 95th percentile, in milliseconds. |
|
integer |
Attempts that started in it. |
|
integer |
Those stopped by something else: |
|
integer |
Attempts that ended in it and succeeded. |
TaskMemoryView¶
A running task’s memory, named.
Field |
Type |
Description |
|---|---|---|
|
string |
The attempt. |
|
integer |
Its memory, in bytes. |
|
string |
Its DAG. |
|
integer |
Its map index; none for an unmapped task. |
|
string |
Its run. |
|
string |
Its task. |
TaskPeakView¶
A task’s peaks.
Field |
Type |
Description |
|---|---|---|
|
integer |
The attempts counted: those with a peak, the newest 1000 at most. |
|
integer |
Its memory budget in the DAG’s current version, in bytes; none: the worker’s share. |
|
integer |
The highest, in bytes. |
|
number |
|
|
integer |
Of them, how many were killed for their memory. |
|
integer |
The 95th percentile of their peaks (nearest rank), in bytes. |
|
string |
The task. |
TaskView¶
A task of a run.
Field |
Type |
Description |
|---|---|---|
|
string |
How its cleanups ended ( |
|
integer |
A mapped task as a whole: how many instances it has (0 before it expands, or for an empty list); |
|
integer |
Which instance of a mapped task, from 0; -1 for an unmapped task, and for a mapped task as a whole (decision 80). |
|
string |
Its outcome, on success. |
|
string |
Why it waits or can’t be scheduled, or why a mapped task failed without an attempt (too many instances, a mapped value that isn’t a list). |
|
string |
Its state ( |
|
string |
The task’s ID. |
|
integer |
Attempts made. |
|
timestamp |
When it last changed. |
TestConnectionRequest¶
A connection to test on a worker (schedr connections test).
Field |
Type |
Description |
|---|---|---|
|
string |
Its root; the one root defining it if not given. |
|
integer |
How long it may take, in milliseconds: |
|
string |
The worker to run it on; one the master picks if not given. |
TriggerList¶
The triggers.
Field |
Type |
Description |
|---|---|---|
|
list of |
By DAG. |
TriggerRequest¶
A manual run to start.
Field |
Type |
Description |
|---|---|---|
|
string |
For a DAG a trigger starts: the key of an event it found, to run again. |
|
timestamp |
And when it happened; the run’s moment otherwise. |
|
any |
And its data, as JSON of any kind. |
|
string |
Or an event given here: its key. It is never stored as an event. |
|
table |
Values for the run’s parameters, as JSON ( |
|
timestamp |
The moment the run is for ( |
TriggerState¶
A DAG’s trigger’s switch (decision 459).
TriggerView¶
A DAG’s trigger.
Field |
Type |
Description |
|---|---|---|
|
string |
The last key acted on: what it starts from. |
|
string |
|
|
string |
Its DAG. |
|
integer |
Its errors in a row. |
|
string |
Its last error. |
|
timestamp |
When it last found something. |
|
timestamp |
When a poke’s call last ended. |
|
timestamp |
When it was last started again for finding nothing for its |
|
timestamp |
Not started again before this moment. |
|
timestamp |
When this run of it started. |
|
string |
|
|
string |
Why it isn’t running although its DAG wants it: |
|
boolean |
A running poke trigger none of whose calls has ended for over three times its |
|
string |
Its function. |
|
string |
The worker running it. |
UsageView¶
What an attempt’s process used.
Field |
Type |
Description |
|---|---|---|
|
integer |
Times it was preempted; none as for |
|
integer |
Page faults that needed I/O. |
|
integer |
The peak resident set size, in bytes; for a forked process it includes the pages it shares with the fork server ( |
|
integer |
CPU time in the kernel, in microseconds. |
|
integer |
CPU time in user mode, in microseconds. |
|
integer |
Times it gave up the CPU (waiting for I/O or a lock), with its threads and reaped children; none for a spawned process (only its leader thread’s could be read). |
WarningView¶
Something wrong with a worker.
Field |
Type |
Description |
|---|---|---|
|
string |
The interpreter it concerns; empty if none. |
|
string |
What kind: |
|
string |
What it means for tasks. |
WatcherHostView¶
A process running a worker’s wait steps, or a code set whose hosts were lost.
Field |
Type |
Description |
|---|---|---|
|
string |
The code it runs: its folders’ names, the copies’ hashes. |
|
integer |
Hosts of this code lost since the agent started: crashes and memory kills. |
|
integer |
The memory it uses. |
|
integer |
Its process’s threads, the wait steps’ among them. |
|
integer |
Those a wait step is tied to: running its |
|
integer |
The wait steps on it (none: no host runs this code now). |
WorkerList¶
The workers.
Field |
Type |
Description |
|---|---|---|
|
list of |
Every worker the master has seen, in ID order. |
WorkerMemoryView¶
A worker’s memory, as it last said (at most a minute old while it heartbeats).
Field |
Type |
Description |
|---|---|---|
|
integer |
Its container’s memory; none outside a cgroup v2. |
|
integer |
Its container’s limit; none when unlimited. |
|
integer |
Its running tasks’ together. |
|
integer |
Its whole memory, in bytes: the agent, its fork servers, wait step hosts and running tasks. |
WorkerNodeView¶
A worker as a node of the deployment.
Field |
Type |
Description |
|---|---|---|
|
table |
Its effective configuration, masked; none from an older agent. |
|
string |
The master it registered with last; none from an older agent. |
|
list of |
Its problems now: lost or offline (errors), what it reports wrong, the import errors of files it parsed (warnings). |
|
string |
The process it runs in; none from an older agent. |
|
list of strings |
The queues it serves. |
|
integer |
Its attempts still running. |
|
string |
Its schedr version. |
|
integer |
Its task slots (decision 462; 0 from an older webserver). |
|
string |
|
|
any |
|
|
string |
Its ID. |
WorkerPartsView¶
A worker’s memory by part and its largest tasks.
Field |
Type |
Description |
|---|---|---|
|
timestamp |
When sampled. |
|
integer |
Its fork servers’, together. |
|
list of |
The largest of them, largest first. |
|
integer |
Its running tasks’, together. |
|
integer |
Its wait step hosts’, together. |
WorkerUsageView¶
A worker’s memory by part (decision 463), as it last said (written at most once a minute).
Field |
Type |
Description |
|---|---|---|
|
integer |
Its fork servers’, together. |
|
list of |
The largest of them, largest first. |
|
|
The agent’s own process (in standalone the master’s and the webserver’s too). |
|
integer |
Its running tasks’, together. |
|
integer |
Its wait step hosts’, together. |
WorkerView¶
A worker in the registry (kept after it is gone, so its logs can be found).
Field |
Type |
Description |
|---|---|---|
|
boolean |
Drained for maintenance ( |
|
string |
The incarnation of its agent process it last registered with. |
|
timestamp |
The last sign of life the master recorded (at most once per heartbeat interval). |
|
string |
Where its log endpoint listens (where a gone worker’s logs were served). |
|
string |
The master it registered with last (a master’s ID, as on |
|
any |
|
|
timestamp |
When it went offline or was lost. |
|
string |
Its protocol version ( |
|
list of strings |
The queues it serves. |
|
timestamp |
When it last registered. |
|
integer |
Its attempts still running. |
|
string |
Its schedr version. |
|
integer |
Its task slots. |
|
string |
|
|
list of |
What is wrong with it now, as it last reported (e.g. a disabled fork server). |
|
list of |
The processes running its wait steps, as its last heartbeat said (decision 343), and code sets whose hosts were lost. |
|
integer |
Its slots for wait steps. |
|
string |
Its ID. |