The web UI¶
schedr ui serves the pages over one or more deployments’ webservers. A deployment is one
schedr: its master, workers, webserver and database. The UI talks only to those webservers’
REST APIs. It never opens a database, and it never calls a worker.
schedr standalone serves the same pages at / on the REST API’s port. That UI has one
deployment, named default, which is the name in a page’s address. Standalone ignores
[ui] deployments.
You can manage runs, DAGs and workers from the pages:
A DAG’s page offers Trigger, Backfill, Pause or Unpause, and Switch on for a switched-off wait step.
A queued or running run offers Cancel run.
A task’s panel offers Cancel task until it ends, and Retry while it is
unschedulable.The Workers page offers Drain and Resume.
Each button opens a dialog that says what will happen. Confirming sends the command and shows its result at the top of the page (see Actions). Lists, DAG pages, run pages and the workers page update while open (see Live updates).
Actions¶
A button opens a dialog of the UI’s own. The dialog says what will happen. Confirm sends the command. Cancel closes the dialog and sends nothing. A second click on Confirm, while the first request is on its way, is ignored.
The result is added at the top of the page, above the part that updates itself, so a later update leaves it there. It reads the command every second until the master has decided:
pending. “sent; waiting for the master to decide.”
applied. “applied.” A trigger that was applied links to its new run.
rejected. “rejected,” with the master’s reason.
A command that was sent, and then can’t be read, stays pending. It says it can’t be read now, and why, and that it is trying again. It keeps being read. It doesn’t say the command was not sent.
Each action carries a key, sent as the Idempotency-Key header. The dialog makes the key
the first time it opens. The browser keeps it for that action in this tab until an answer
says whether the command arrived. When no answer comes, the UI sends the command again
under the same key, up to 3 times in all. The webserver gives back the command it stored
the first time, so the command is never stored twice. If no answer comes at all, the
result says the command may have arrived, and why. The key is kept, so sending the
action again from the page is the same command, even after the page reloads. Only the
UI’s own answer drops the key: an error page from a proxy in front of the UI (a 502, say)
keeps it, since the command may have arrived behind it.
The result says “not sent” and why when the webserver refuses the request, no try connects to it, the UI has no such deployment, or the trigger’s moment is invalid. These results are not polled.
While a dialog is open, the page does not read its live parts again. A reload would replace the dialog. When the dialog closes, the page reads those parts once.
An action is taken only from the UI’s own pages. Anything else is refused (see
Network and security).
A command the UI sends is recorded with the name of the person signed in at the UI, when the
webserver can tell the call comes from schedr ui; otherwise it is anonymous. How people
sign in, and how the UI proves itself, are in
Network and security: Sign-in.
Trigger, on a DAG’s page, starts a manual run. The dialog takes the moment the run is
for, in the forms schedr runs trigger --for takes: a date-time with its offset
(2026-10-15T03:00:00+02:00), one without (read as UTC), or a date (midnight UTC). Empty
means now. As the moment is typed, the dialog shows it in UTC and in the browser’s zone,
the same way the pages show other times. A moment with no offset adds “no offset given:
read as UTC”. One that isn’t one of those forms is shown as an error. Confirm doesn’t send
it, and the result says it was not sent, and why. While the DAG is
held the button is still there and does not open the dialog:
it is disabled, and the reason is its tooltip. Under the moment, when the DAG takes
parameters, the dialog lists an input for each field, under Parameters, filled in with
the default: a check box, a number, a date, a list of choices, a JSON box for a nested value
or a list, and a “none” box beside a field that may be null. A secret field is an empty
password box (an optional one says “leave empty for the default”); its default and its
choices never reach the page. Confirm sends only the fields changed from their defaults, and the master
checks them as it checks any trigger: its refusal is the result, rejected, with its
reason. A value the form can’t read is not sent; the reason names the field and never
quotes what was typed. A page loaded before the DAG’s parameters or their defaults changed
is not sent either, and the result says to reload it. A DAG that takes none has no such
inputs, and the run uses the defaults. Each kind of field, and what is sent, is
The Trigger dialog.
For an event-triggered DAG, the dialog also requires an Event key and offers Event
data (JSON), empty for null. Its tasks read the supplied event as dag_ctx.event.
The manual run writes no event; its event time is the run’s moment.
A DAG started by a RunOf trigger
asks for them too: its key is a run ID of the other DAG.
Backfill, on a DAG’s page when its trigger has fire times and it is not held, opens a
dialog for the inclusive From and To range, parameters, Every fire time and Only
count them (a dry run). To defaults to now. The page lists backfills with their run
counts by state and a Cancel button while runs remain queued or running. A backfill
run is labelled, for example, backfill 3/31: its place among that backfill’s runs,
oldest first. See Backfill.
The Trigger column of the DAG list, and the Trigger line of a DAG’s page, show the trigger’s
kind (Schedule, Run of, Chained, Event, or Manual for none), the trigger as written, and its
switch: active or paused. A Manual DAG has no switch.
Pause, on a DAG’s page while its trigger is active, stops its trigger starting runs until it
is unpaused: no scheduled or event runs, and no runs from other DAGs’ operators for a
Chained DAG. The dialog offers “Also cancel its queued and running
runs”. Leaving that unchecked pauses only. Unpause is shown instead while the DAG is
paused, and its trigger starts runs again. The button follows the DAG’s state as the
page updates: once a pause is applied, the page shows Unpause. A DAG with trigger=None
has neither button: it has only manual runs, which pausing doesn’t stop.
For a RunOf trigger, runs that end while the DAG is paused are not caught up on unpause.
Cancel run, on a run’s page while the run is queued or running, stops its running
tasks and cancels the rest. A task that has already ended keeps its result. Resource cleanups still run with their retries; a failed cleanup makes the run failed.
Cancel task, in the task’s panel while the task has not ended, stops it if it runs and
cancels it at once if it has not started. The tasks downstream of it are cancelled. A task
has ended when its state is success, failed, cancelled, skipped or
upstream_failed. Retry is in the panel while the task is unschedulable: every
worker that could run it rejected it, and it is queued again, for every worker. An
unschedulable task offers both. For a resource cleanup, the Cancel dialog warns that what
its setup made may be left behind and that the run ends cancelled, or failed if a task
failed. For a blocking cleanup it also warns that what follows its group is cancelled; a
non-blocking cleanup cancels nothing else. See Resources.
Drain and Resume are on a worker’s row (see Workers).
Live updates¶
The DAG list, a DAG’s page, the runs list, a run’s page and the workers page update themselves. An open task panel updates with its run, except on the Logs tab, where the log is followed on its own. The Metrics page doesn’t follow the stream: it reads itself again once a minute, as the samples come (see Metrics).
The webserver follows the database’s writes and serves what changed at GET /api/v1/changes
(see Network and security). A run or dag event names
that run or DAG. A workers event says the workers changed. None of them carries the new
state, and refresh means anything may have changed. The UI keeps one of these streams per
deployment and tells each open page when something that page shows may have changed. The
page then reads the new state. If the stream ends or can’t be opened, the UI opens it again
after 1 s, then waits twice as long each time, up to 30 s. When the stream is back, the open
pages read themselves again, since anything may have changed while it was down.
A browser holds one stream to the UI, shared by all its schedr pages, in every tab and
window. The first live page starts a shared worker (/assets/live.js), which opens the stream
and hands each change to every page; it closes the stream with the last page. Over plain
HTTP/1.1 a browser opens at most six connections to one host across all its tabs, and an
open stream holds one, so a stream per page let six live pages keep every other schedr page
and click waiting. The stream carries every change, and each page reads its live parts again
only for those that concern it.
When the stream opens, or opens again after it dropped, a page reads its live parts at once if the deployment changed after the page was made (opened again: every page does). A page opened while the stream is already open gets the changes made since it was made, which the worker keeps for a minute. That covers the moment between the page loading and it joining the stream, and the time the stream was away. A change that arrives while a live part is being read is read again once that read is done, so the part ends showing the latest state. A read that fails, for example the deployment briefly down, leaves the part as it was, with “Not up to date: reading it again failed (HTTP 502).” above it. The next change reads it again. A page reads its live parts at most once a second. A change that arrives during that second is read when the second is up, so the last one is not dropped. A quiet stream sends a ping every 15 s. Once nothing has arrived for 30 s, not even a ping, a page reads its live parts every 5 s. That covers a proxy which buffers the stream and holds the pings back (see The events stream). While an action’s dialog is open, the page leaves its live parts as they are. When the dialog closes, it reads them once (see Actions).
A running try’s log is read by polling: about once a second, at once while more is waiting, each read holding a connection only while it is answered. When the UI doesn’t answer, it is read again a second later.
A browser without shared workers (Chrome on Android, for one) gives each page its own stream. A page in a tab hidden for 10 seconds then closes it, unless an action’s dialog is open, and reloads when the tab is shown again (its state is in its URL, the open task panel included). Over HTTP/2, which a TLS proxy or ingress in front usually speaks, every request to the UI shares one connection and the limit of six doesn’t apply: worth it for the UI on a shared address in any case.
When the server stops, it cuts the pages’ streams about 3 seconds after the stop, and the pages reconnect to the next server.
Page |
What is read again |
|---|---|
The DAG list |
The list, when a DAG is defined, changed, paused or removed. A new run leaves the list as it is. |
A DAG |
Its facts and its 50 newest runs, when that DAG changes or one of its runs does. |
The runs list |
The runs on this page, with the same filters and the same place in the list, when a run changes. |
A run |
The summary, the graph, the tasks, resources and commands, together, when that run, a task or an attempt changes. The open panel is read on its own and stays on the same task, instance and tab. The Logs tab is left as it is. |
The workers page |
The list, when a worker registers, changes state, or is seen. A heartbeat counts as seen. |
The writes announce what changed, through triggers in the database. The triggers are on by
default. Stress scenarios 15 and 15b measured them at about 2-3% of the master’s throughput,
within the noise between runs (see Stress tests). [database] change_notifications = false turns them off.
schedr db migrate applies the setting, and so does --migrate (schedr master --migrate
and schedr standalone --migrate), once that process holds the master’s lease, including when
the schema is already up to date. A running master never applies the setting on its own.
Restarting it picks the setting up only with --migrate. The webserver follows the triggers’
state in the database. That state is written only when it differs from the setting. On
Postgres the triggers are turned on or off with ALTER TABLE, which takes an exclusive
lock on each affected table: runs, task_instances, attempts, dags,
dag_triggers, wait_step_strikes, trigger_progress and workers. On SQLite the triggers stay
and read a one-row switch, changes_switch.
On Postgres, with the triggers on, the webserver is notified when the writing transaction
commits: one notification per run that transaction changed, one per DAG, and one if the
workers changed. On SQLite there are no notifications. The writes append a row to a
changes table, which keeps about the last 1,000 rows, and the webserver reads the new rows
every second while the triggers are on. If a change was missed (more came than the table
keeps, or the listening connection was lost), the pages refresh once and following
continues. A lost connection listens again before the refresh is sent, so a change made
after the refresh is heard.
The webserver reads whether the triggers are on before it follows, and again every minute
while it follows. Turned off meanwhile, it sends refresh and switches over to the timer.
When the changes aren’t followed, it sends refresh on the refresh interval
(15 s by default, at least 1 s: a shorter value is treated as 1 s). That is the triggers
off, or no listening connection: [database] notifications = false, or a pooler in
transaction mode unless [database] notifications_url points straight at Postgres. It uses
the same check as the master’s commands (see The master). While it is on the
timer because the triggers are off, it reads them again at each refresh. Turned on
meanwhile, it follows from then on. With the triggers off it logs that the database doesn’t
announce its changes and names the interval.
A running try’s log grows in the Logs tab of the task panel.
The DAG list¶
/ lists every deployment’s DAGs, sorted by DAG id and then by deployment name. The columns
are the DAG (with held or conflict beside it when so), its trigger with its switch
(active or paused; none for a DAG without a trigger, decision 459), its tags, and where it is
defined: the root and the path, as the CLI writes them (etl:team_a/sync.py). The trigger
is its kind, then the trigger as the CLI writes it: Schedule (a cron expression, Every
or Once: Schedule 0 3 * * * (Europe/Warsaw)), Run of, Chained, Event (a @trigger,
or EventNamed: Event event paid), or
Manual for a DAG with trigger=None, with nothing after it. Under a
DAG’s id is its description, if it has one, on one line; hovering it shows all of it. A DAG that
is held has a held badge beside that state. Hovering the badge shows the reason. A DAG
that other files also define is marked conflict
(see Parsing and code versions).
When the UI shows more than one deployment, tabs above the list choose All (every
deployment’s DAGs in one list, with a Deployment column) or one deployment (its DAGs only),
each with how many DAGs it has. The choice is in the address (/?view=etl; /?view= for all) and
is remembered for your browser (the schedr_dags_view cookie, for a year), so / opens on
the tab you chose last. A name no deployment has shows all. A warnings banner names only the
chosen deployment’s.
Filters narrow the list, beside the column titles, each choice with how many DAGs it would show:
Filter by name, beside DAG: the DAGs whose id holds what you type, in any case. The list follows as you type, and the field keeps its focus and what you typed while the list updates.
All, Active (the trigger is on) or Paused (switched off), a dropdown beside Trigger showing the one chosen; choosing applies it at once. A DAG without a trigger is neither, so it shows only under All. The choice is remembered for your browser (the
schedr_dags_triggercookie, for a year), as the deployment is.Kind (beside the switch) and Tags: dropdowns listing a box for each trigger kind and each tag the deployment’s DAGs have, one a line (a long list scrolls), the number ticked in brackets after the name. Tick several, then close the dropdown (click outside it, or press Escape) to apply them: the DAGs with any of them are listed. While a dropdown is open, the list doesn’t update itself. The columns keep their widths as you filter.
The filters narrow each other: a DAG is listed when it passes all of them, and each box’s count
is of the DAGs the other filters show. They are in the address (/?trigger=paused&tag=etl&tag=ml&name=sync),
so a filtered list can be linked to, and it keeps its filters as it updates itself. Only the
deployment and the trigger switch are remembered; the name and the boxes are not. A list the
filters leave empty says “No DAGs match these filters.”
The list is sorted by DAG id, A to Z (▲ beside DAG). Clicking the DAG title sorts it Z to A
(▼, order=desc in the address) and keeps the filters; clicking again sorts it back. The order
is not remembered.
Above the list, and outside the part that updates itself, a notice is loaded once the page has been sent. It is not read again while the list updates. With nothing to say, the notice is empty. Otherwise it is one warning. Each of these parts is included when it applies, joined by “; “, and the warning ends “. (see import errors)”, the link to Import errors:
one file held: “1 file failed to import: its DAGs are held (no runs) until it is fixed”;
several: “N files failed to import: their DAGs are held (no runs) until they are fixed”, with N the count;
a timeout or a runner that died, one file or several: “N files failed to import for now (a timeout or a runner that died): parsed again, their DAGs keep their last good version”. For one file, it says “1 file” and “its DAGs”.
A warning banner also counts switched-off wait steps and links each one to its DAG page, where it can be switched on. See Wait steps.
When the UI has more than one deployment, a Deployment column names which one each DAG
belongs to. With one, as in standalone, that column is absent. A DAG’s address is
/d/<deployment>/dags/<dag id>.
The UI asks every deployment at the same time. One that can’t be reached, or that answers
with an error, is named in a warning (Unavailable: <name>: …), and the DAGs of the others
are still listed. A connection that doesn’t complete gives up after 5 s, and a request that
doesn’t finish gives up after 30 s. The page is sent when the last deployment has answered
or given up. schedr ui proves itself to a webserver in one of two ways. It sends the token
read from the deployment’s token_file, or it presents its certificate when the URL is
https:// (mTLS). Both are described in
Sign-in. A deployment whose
webserver refuses the UI shows up as unavailable, with the webserver’s answer. The chart’s
default policy allows anything from the same namespace without a token (see
Deployment). The list updates when a DAG changes
(see Live updates). A later update asks again for a deployment that was
unavailable.
A DAG¶
A DAG’s page shows its description, its trigger with its switch (as in the list), where it
is defined, and its tags. A held DAG also has a held badge, and a warning: the reason,
a full stop, “Its queued runs wait meanwhile.”, and a link to
Import errors. Trigger is there, and disabled while the DAG is held,
with the reason as its tooltip. Pause is there while the DAG is
active, and Unpause while it is paused, held or not; a DAG without a trigger has neither
(see Actions). The trigger is written as schedr dags list writes it
(0 3 * * * (Europe/Warsaw), every 1h, event paid), after its kind. The zone in parentheses is the schedule’s own zone. When other files
define the same id, a warning lists them and says that none of them runs until one is left.
A warning lists this DAG’s switched-off wait steps, their strikes and when they were switched off. Switch on forgets a step’s strikes so it can run again; the usual strike limit applies afterwards. New code also gives it another chance. See Wait steps.
An event-triggered DAG has a Trigger section showing its state and function, worker,
bookmark, available times, and last error with the consecutive failure count. Running
pulses. A running poke trigger none of whose calls has ended for over three times its every
plus a heartbeat is marked stuck: its worker may hang. Restart, in the page’s row of
actions, starts it again from its bookmark; it is shown only where that changes something: a
trigger stopped, failing and waiting to start again, or stuck (schedr triggers restart works
at any time). An @trigger(wait_for=...) also shows the run it is called for, and while no
call runs, Skip run, in the same row, passes that run, as schedr triggers skip does. The section lists up to 20 recent
events with their key, received time and data; Run again starts a manual run with that
stored event. Event data is masked in this view. See Event triggers.
The section is not shown for a RunOf trigger; schedr runs trigger <dag> --event <key> runs one of its
stored events again.
When a task declares a connection missing or refused in its root’s current parse, a warning banner lists the task and the reason. The DAG still loads; those tasks’ attempts fail until the connection is fixed. See Parsing.
A DAG whose current version sets concurrency
limits lists them under Limits, each with
how many run now: “max_active_tasks 10 on the DAG: 3 running”, “max_active_per_run 2 on
task fetch, in each run: 2 running in its busiest run”. A limit that is reached is in the
waiting colour and says “(reached: the rest wait)”. The counts are the open attempts the
master counts, read from the database when the page is asked for. A task held back by a
limit shows the limit as its waiting reason in its panel.
Above the runs, Connections shows the connections its tasks declare.
Memory, above the runs, lists each task’s peak memory over its attempts that ended in the
last 30 days, in the DAG’s 1000 runs that ended last and those still going (at most the newest
1000 attempts of each task), whenever the runs were planned (a backfill of old moments ending
now counts): Attempts counted (those whose peak was read), the p95 peak (95 % of them peaked
at or below it), the Highest, its Limit (memory=, or “worker’s share”), the p95 as a
share Of the limit (red from 90 %), and how many were Killed for memory. The tasks
closest to their limits come first, then those without one by their p95. A DAG none of whose
attempts has ended has no Memory section. A task’s own attempts are on its panel’s
Memory tab.
Below that are the 50 newest runs, newest by the moment they are for: the run id, its state, that moment, its kind, when it was triggered, by whom, and when it ended. The ended time is blank while the run is going. Each run links to its page. “all runs of this DAG” opens the runs list for this deployment and this DAG, newest triggered first.
Opening a DAG asks that one deployment. If it doesn’t answer, the page says the deployment is unavailable. An unknown deployment, an unknown DAG or any other path is a not-found page, with a link back to the list. The page updates when this DAG changes or when one of its runs does (see Live updates).
The runs list¶
The header’s Runs opens /runs: the runs of every deployment, in one list. The newest
triggered run is first. Runs triggered at the same moment are ordered by run id, the greater
id first. A scheduler round triggers its runs at one moment, so Older runs is counted
from the last run on the page, its trigger time and its id, and the rest of that moment
stays in order.
The columns are the run, its DAG, its state, the moment it is for, its kind, when it was
triggered, by whom, and when it ended. The ended time is blank while the run is going. The
times there always show seconds, so they line up in the column; a run started by another
(chained) names it by the last 8 characters of its id, a link to it. Each
run links to /d/<deployment>/runs/<run id>. With more than one deployment, a Deployment
column names which one. With one, as in standalone, that column and its filter are absent.
The filters sit beside the column titles, as on the DAG list: a field beside DAG keeps the runs
of the DAGs whose id holds what you type, in any case, following as you type; and dropdowns of
radio buttons beside State
(any, queued, running, success, failed or cancelled) and, with more than one
deployment, beside Deployment (choosing one asks only that deployment). Choosing applies it
at once, and the dropdown’s button shows the choice. The same filters go to each deployment
that is asked (as dag_contains on GET /api/v1/runs). A state other than those five is a
bad-request page (“That isn’t a run state.”). With no run left, the list says “No runs match
these filters.” any in a dropdown, or an empty DAG field, removes that filter. A page
whose deployments took more than 50 ms to answer (a name matching DAGs with long histories)
reads again at most every 5 s when runs change, instead of every second
(SCHEDR_HIDDEN__UI__SLOW_READ, SCHEDR_HIDDEN__UI__SLOW_READ_WAIT). A yellow success still matches the success filter.
Its state is yellow with the reason when a cleanup fails after the run ended; it asks for
attention. See yellow success.
The page lists 50 runs. A full page offers Older runs, which continues from the last run shown. The page after the last one says “No runs before these.” An empty list says “No runs.”
The UI asks the deployments at the same time, as on the DAG list, and gives up after the
same waits: 5 s to connect, 30 s for the request. One that can’t be reached, or that answers
with an error, is named in a warning (Unavailable: <name>: …). Its runs are missing from
that page and from the older ones reached from it. Those pages start after the last run this
page showed, so a run this page missed is not added later. Load this page again once the
deployment answers. A live update asks the deployments again, and one that answers is
included from this page’s place in the list. A later page asks again: a deployment that
answers there adds its runs from that point on. The list updates while it is open, filters
and place included (see Live updates).
A run¶
A run’s page is /d/<deployment>/runs/<run id>. It shows the run id and its state, then one
line. A chained run links to the parent run that started it.
failed. When any task’s state isfailed, those tasks are named (“failed: task load failed”, or “failed: tasks extract, load failed”);cancelled, in the same way, for tasks whose state iscancelled;running: 2 of 5 tasks running. Tasks that arerunningorcleaning_upcount toward the first number. When some areunschedulable, the line continues “; can’t be scheduled: …” with those tasks;queuedorsuccessas that word alone.
A wait step at work pulses, unless the browser asks for less motion: a sensor while it
runs, and wait_for(RunOf(...)) while it waits queued, with a
reason. A failed wait step is
red. One whose time ran out is grey like a skipped task and says TimedOut. The run stays
success whether or not a task takes that outcome; write .on(TimedOut) to do something
about it. See Wait steps.
A yellow success also shows the reason: a late cleanup failed and handles may be left
behind. The task instance shows its failed cleanup. The run state stays success.
The facts are the moment it is for, its kind, when it was triggered and by whom, when it
started and when it ended. When the run has parameters, Params lists each field: text
as itself, any other value as JSON (limits = [1,2]), masked the same way as a task
output (Secrets). A run with none leaves that line out. Started and ended are
left out until they have happened. Times are shown as on the other pages. While the run is
queued or running, Cancel run is offered (see Actions).
The graph is the DAG version this run started with (see Parsing and code versions). When its tasks ran on more than one version of the code, a warning says the code changed during the run and how many versions its tasks ran on (“The code changed during this run: its tasks ran on 2 versions of it.”), and lists those hashes, in the order the run first used them.
Opening a run asks that one deployment. If it doesn’t answer, the page says the deployment is unavailable. An unknown deployment, or a run id that isn’t in it, is a not-found page, with a link back to the list. While the page is open, the summary, the graph, the tasks, resources and the commands are read again together when the run changes. The open panel is read on its own (see Live updates).
The graph¶
The tasks are laid out in layers, top to bottom: each task is in a layer below the tasks it
waits for. A box is coloured by the task’s state. It shows the task name, shortened when the
name is long, then the state, and the outcome when that outcome is something other than
SUCCESS. Hovering a box shows the full task id and the state. Until the run has task
instances, the boxes have no state yet, and choosing one says the task isn’t in the run.
A solid edge is one where the downstream task takes the upstream task’s output. A dashed
order edge means it runs after, and receives nothing. A dotted, resource-coloured edge
means a task needs a resource. The legend says “takes the output”, “runs after”,
“needs a resource” and “an option” (a dashed line into a first_of or at_least box, which says how many count). A pair with both data and order edges is
drawn as one solid edge, because the data edge already puts them in that order.
For first_of and at_least, the options are drawn in one
box with one dashed line to the node. The winners are outlined and named on the node. When
the options cannot share a box, each has its own dashed line.
A resource’s setup and cleanup are caps, rounded at the top and bottom respectively, with bands in the resource’s colour. They sit in a Resources box to the left, each resource in its own lane at the height of its original rows; task rows stay in place. Lines run through a channel between resources and tasks, crossing between rows. Each user has a dot in its resource’s colour. When users share a group, a summary line goes from setup to the group at their first row and another from the group at their last row to cleanup; otherwise the lines join the first and last users. Hover or select a cap, user dot or summary line to show the other lines and the resource’s rail. With no users, the setup’s link to cleanup remains.
The DAG itself has no user-to-cleanup edge. When a blocking cleanup holds back what follows its group, the graph always draws that wait from the cleanup and omits the users’ non-data edges to those tasks; data edges remain. A non-blocking resource’s link to cleanup is dashed, and the users’ edges to what follows remain.
An edge taken only on some outcomes is labelled with those names (Rows, or
Unavailable | Rows when a pair of tasks has several such edges). Once the upstream task
has succeeded with another outcome, or has been skipped, that line is faint and its
tooltip says on Rows (not taken). A pair with both a conditioned edge and one taken on
any outcome has no label: any outcome already takes it. A selection edge from a
@branch task is a solid line with no outcome label. Once the branch has succeeded, the
edges to the targets it did not choose are faint (the page reads the branch’s stored
output, the chosen IDs), and so are all its edges when it was skipped. If the output
cannot be read, the edges stay solid. A target not chosen may still run on another edge,
so its box shows its own state.
A box is drawn around each group’s tasks, labelled with the
group’s own name, the last part of its id, shortened to fit. A nested group’s box sits
inside its parent’s, and the gap between layers grows with the nesting. Hovering the box
shows the full id, as group load.eu.
A mapped task is one box. Its name carries the instance count (fetch ×3), shortened to
leave room for it, and the line under the name is how far the instances are (2/3 done,
and 2/3 done · 1 failed when some have failed) instead of the state word. Finished is
success, failed, cancelled, skipped or upstream_failed. The failed count is
failed and upstream_failed. The outcome is added when it is something other than
SUCCESS. Until the task expands, and when its list was empty, the count is ×0 and the
line is 0/0 done.
A DAG version with no tasks says “This DAG has no tasks.”
The task panel¶
Clicking a task, in the graph or in the tasks table, opens its panel beside the graph. The rest of the page stays put. On a narrow window the panel sits under the graph. Until a task is chosen, the panel says “Choose a task to see its attempts, output and log.”
While the task has not ended, the panel offers Cancel task. While it is
unschedulable, it also offers Retry (see Actions).
The panel’s address is the run page’s with ?task=<task id>, &map_index= for one
instance of a mapped task, &tab= for the open tab (attempts, output, logs,
cleanup, memory, or instances on a mapped task) and &try= for one try’s log. A link or a
reload keeps the panel as it was. For a task that isn’t mapped, and for one instance, the
Attempts tab is open when the address names none, or names a tab other than Attempts,
Output, Logs, Cleanup and Memory. A mapped task opened with no map_index has Instances,
Output and Memory, and Instances is open unless the address names another of them. The close control returns
to the run page. A task id that isn’t in the run is a not-found page. Opened from the page,
the panel says the task isn’t there.
While the page is open the panel reads itself again when the run changes, and it stays on the same task and tab. The Logs tab does not: the log is followed on its own, and the rest of that tab stays as it was when it opened.
Attempts lists the tries, oldest first. A try that has not ended is running. The
columns are the try, its status, the worker, how long it ran, its peak memory, and when it
started. Beside the status is how the worker started it, spawn or fork, once that has
been reported. Duration and peak memory are blank when the worker did not measure them. The
error is on the next line, with its traceback under Traceback. No tries yet says “No
attempts yet.” A TriggerDagOperator attempt links to the run it started.
Output shows the outcome, the size of the pretty-printed value, and that value. Only the last 64 KiB is on the page, and when the value was cut the panel says “Only its end is shown (the last 64 KiB).” download is the whole pretty-printed value. While the task has no output, the panel says “No output (yet).” If retention deleted it, the panel says “Output deleted by retention.”
Logs shows one try’s log. The last try is shown when the address names none, or names a try the task doesn’t have. The panel reads the log’s last 1 MiB and keeps its last 256 KiB, from a line’s start. A last line longer than 256 KiB is kept whole when that read includes the line from its start, as far as the 1 MiB goes; a last line that began before the last 1 MiB is not shown, and the panel says “… (its last line is longer than 1 MiB: not shown here)”. When what is shown is not the whole log, the panel says “Only its end is shown (its last lines, about 256 KiB).” How a longer line is cut, and how secrets in the text are hidden, is under Secrets. The standard 16 ANSI colours are shown, along with bold, faint, italic and underline. A 256-colour or RGB code is left out, and any other escape sequence is removed. The line names the whole log’s size, and says “still running” while the attempt runs. That line stays as it was when the tab opened.
While the try runs, the page reads what is new, 1 MiB at a time, and adds it: about once a
second, and straight on when at least half a part is already waiting. The colours carry
from one part of that new text to the next. A try that wrote more and ended while the tab
was opening is followed the same way, to its end. When the try has ended and the rest of
the log is shown, the page stops
following. A connection that drops picks up where the shown text ends, so nothing is shown
twice (a colour open across the drop may be lost). If following can’t read the log, the page adds The log can't be followed any more: … and
stops. A worker or the webserver that is out of reach is tried for 30 s first. Any other
failure stops at once.
When the log can’t be read on opening, the panel says why: for example the try has not started or never did, the worker is offline or lost, it can’t be reached, or the file is unavailable at that worker and may have been deleted. A task that has not been tried says “No log to show: It hasn’t been tried yet.”
Cleanup lists each attempt with cleanup data: its result, tries, moves, duration and any error and traceback, with registered handles under a disclosure. It links a resource’s setup to its cleanup and vice versa. If there are no rows it says “No cleanup has run after its attempts (yet).” Handles are masked as task data (see Secrets).
Memory charts the peak memory of the task’s last 30 attempts that ended, across its runs
and, for a mapped task, its instances, the oldest first: a bar each, green for a success, red
for a failure (failed, timed out, killed for its memory), grey otherwise, with ✕ over an
attempt killed for its memory. An attempt whose peak wasn’t read (lost with its worker) has no
bar. The task’s own limit (memory=) is dashed across, when it is within four times the
highest bar; without one the task has the worker’s share, which differs by worker. Hover over
a bar for when the attempt ended, its try (and instance), how it ended and its peak; clicking
it opens that run with the task’s Attempts tab. The peak is the one the worker’s watchdog
measured, as on the Attempts tab. With no ended attempt it says “No attempt of it has ended
yet.” It shows a task creeping towards its limit before an OOM kill.
A mapped task¶
Clicking a mapped task, in the graph or in the tasks table, opens the task as a whole. The
Instances tab lists [0], [1], … with each instance’s state and how many tries. None yet
says “No instances: it hasn’t expanded yet, or its list was empty.” Output is the gathered
list.
An instance’s panel is titled fetch[1], with a link back, “all instances”, to the task’s
Instances tab. It has five tabs: Attempts, Output, Logs, Cleanup and Memory. Memory shows the task’s
attempts across runs and instances, as on the task’s panel. Its address is the
run page’s with ?task=fetch&map_index=1&tab=. Cancel task and Retry on that panel
send ?map_index=1. While the page is open the panel is read again at that address, so a
live update stays on the same instance. Retry is offered while that instance is
unschedulable. The task as a whole is not assigned, so its panel does not offer Retry for
that reason.
Tasks¶
The tasks table lists each task of the run as a whole, the -1 row, not its instances: its
id, its status, how many tries, why it waits
or can’t be scheduled, and when it last changed. A mapped task’s id is shown with its
instance count (fetch ×3). The reason is blank when there is nothing to say. Clicking the
task id opens the panel. Before the run has task instances, the table says “No tasks yet:
the run hasn’t started.”
The status is state · outcome · cleanup, omitting SUCCESS and ordinary cleanup results.
It adds cleanup failed or cleanup lost when applicable. A mapped task as a whole shows
its instances’ worst cleanup when it has no cleanup result of its own: failed, then
worker_lost, ok and not_needed.
Resources¶
The Resources table gives each resource’s state, links to its setup and cleanup with their
states, and lists its users. Its state can be setting_up, waiting_for_users,
cleaning_up, cleaned, cleanup_failed, cleanup_cancelled or not_needed. A
non-blocking resource says “not waited for”. With none, it says “This run has no resources.”
The same list is available through schedr resources list <run> and
GET /api/v1/runs/{run}/resources.
Commands¶
Commands is the history of commands about this run, oldest first: the trigger that created
it, when a command did, a cancel of the run or of one of its tasks, a retry of one of its
tasks, and a pause that cancelled it. A run the scheduler created has no trigger row. Each
row is when it was asked, by whom, the command (trigger_run, cancel_run, cancel_task,
retry_task or pause_dag) and the decision (pending, applied or rejected), with
the master’s reason when it gave one. A command the UI sent carries the name of the person
who took the action, or anonymous (see Sign-in). None yet says
“No commands about this run.”
Workers¶
The header’s Workers opens /workers: every deployment’s workers, in one list, ordered by
deployment name and then by worker id. The columns are the worker, its state, its master,
the queues it serves, Running tasks out of its task slots (2 / 4), Wait steps
running out of its watcher slots, its Memory, its schedr version, and when it was last
seen. Memory is the worker’s whole memory as it last said (at most a minute old): the agent,
its fork servers, its wait step hosts and its running tasks together. Its tooltip gives the
tasks’ share, and the container’s memory and limit when it runs in one, whose use shows as a
bar beside it (red from 90 %). A worker that is offline or lost keeps its last figure,
greyed. Last seen is its last heartbeat, shown as other times are. With
more than one deployment, a Deployment column names which one. With one, as in standalone,
that column is absent.
Under each worker are its watcher hosts, each with its code (the full code is in the
tooltip), wait steps, memory and threads. Tied threads run a wait step’s to_thread calls
or were started by a step; untied threads are the rest of the process, including library
pools. A code whose hosts were lost can say no host now. Hosts lost counts crashes,
memory kills and other losses for that code since the agent started. Hosts are not shown
for a worker that is offline or lost.
The Master column is the master the worker registered with last, by the last 8
characters of its ID. It links to that master’s node on the Deployments page (see
Deployments). A worker that registers again after another master took
over shows the new one. A worker that isn’t connected now keeps the last one, greyed. A
worker running an agent older than this column shows -.
The state is active, draining, disconnected, offline or lost. A worker drained
for maintenance is also marked drained. Its warning messages are listed on the row under
it (see The fork server).
Drain is on a worker that isn’t drained, and Resume on one that is, while its
state is active, draining or disconnected. A worker that is offline or lost is
gone, and has neither. Drain is the maintenance command schedr workers drain (see
Draining): no new tasks, the ones it runs finish, and the drained
state is kept across its restarts until Resume. Resume means it takes tasks again. Both go through the
same dialog and result as the other actions (see Actions). The dialog names
the deployment and the master the worker is registered with, and says that the
deployment’s leading master applies the command. The drained state is kept in the
database, so it also holds when another master takes over.
The UI asks every deployment at the same time, as on the DAG list, and gives up after the
same waits: 5 s to connect, 30 s for the request. One that can’t be reached, or that
answers with an error, is named in a warning (Unavailable: <name>: …). The workers of
the others are still listed. When the deployments that answered have none, the page says
“No workers.” The list updates while it is open (see Live updates). A
later update asks again for a deployment that was unavailable.
Connections¶
The header’s Connections opens /connections: every deployment’s connections, grouped by
root. Each row shows the connection’s name, type, defining file, the DAGs and tasks that
declare it, and why it is refused, if it is. Connections unused by a DAG are listed too,
as are names declared by tasks but not defined. A DAG’s page shows its tasks’ connections
above its runs. A webserver too old to provide the list shows no section. To define a
connection, see Connections.
Check all renders the root’s connections on a worker and reports which secrets are there, missing or otherwise unavailable; it contacts nothing. Refused connections are not checked. Test opens one connection and runs its check, logging in to the real system with that deployment’s secrets; a confirmation dialog comes first. Some connection types only render or open and close, as described in Checking them on a worker.
The check’s status appears under its button, with each connection’s result in its row; a test’s result appears in its row, separately from the check. Results and running polls stay while the page is open, including across live updates, and are gone when it is left. lost means the worker went away or restarted, the master restarted, or the answer did not come in time. no answer means the worker did not report that connection; it may have gone from the code, so read the page again. may have arrived means the webserver gave no definite answer to the command; sending it again from this page uses the same command. See Actions.
Deployments¶
The header’s Deployments opens /deployments: one graph of everything this UI shows, with a
Status block above it, one line per deployment:
Column |
Shows |
|---|---|
Deployment |
its name; click it for its webserver’s panel |
Masters |
how many lead and how many stand by; no leader in red, since then nothing is scheduled |
Workers |
how many in each state ( |
Slots in use |
attempts running over the task slots of the active workers |
Memory |
every process’s memory now, tasks included, with a sparkline of the last 24 h; it opens the deployment on the Metrics page |
Problems |
its nodes’ errors and warnings counted; click to unfold the list, errors first, each line opening its node’s panel |
Versions |
the schedr version its processes run (webserver, masters, and the workers not gone); more than one is marked mixed, with how many processes run each |
A deployment that can’t be reached says why and how long the UI waited before giving up. The block is refreshed with the page.
The UI is on top, in a rectangle of its own: its process. In standalone the UI runs in the deployment’s one process, and is drawn inside it.
Each deployment is a dashed frame named after it (
defaultin standalone). In it, its webserver on top, its masters below, its workers at the bottom.Each rectangle around nodes is a process, titled with its host and the last 8 characters of its process ID. In a distributed deployment each webserver, master and worker runs in a process of its own. In standalone one process holds the UI, the webserver, the master and the worker.
The lines between the nodes are how they talk. Their legend is above the graph:
HTTP, from the UI to each deployment’s webserver: the UI reads the deployment through its API.
database, dotted, from the webserver to each master: they share the deployment’s database, which is the link between them.
gRPC, from a master to each worker registered with it. A worker that isn’t connected now (
disconnected,offline,lost) has its line dashed.
There is no line inside a process. A webserver that can’t be reached is still drawn, red, with a dashed line to it.
A master shows its role: leader (it holds the lease, see
One master per database) or standby. A
worker shows its state and the queues it serves (queues: default, large). The masters are
those heard from in the last 30 s (each writes its row every 10 s, the standbys too); the
workers are every one the master has seen, gone ones included. The UI asks every deployment
at the same time and gives up after the same waits as on the DAG list.
A node with a problem is yellow (a warning) or red (an error), with ! or × in its
corner:
The UI: a webserver it can’t reach is an error; a webserver whose schedr version differs from the UI’s is a warning.
A webserver that can’t be reached is an error.
A master reports its own problems with its heartbeat: its lease renewed late (a warning: it pauses until it is renewed), a scheduling round failing (an error), and its command notifications failing (a warning: commands then wait for the next round).
A worker that is
lostis an error; onedisconnectedis a warning (lost unless it comes back within its lease). Oneofflinederegistered on purpose (a restart, a scale-down) and has no problem: it is grey and dashed, and stays on the graph. So are its warning messages (see The fork server) and the files it parsed that failed to import (see Import errors).
Clicking a node opens its panel beside the graph, the node outlined. The panel stays in
view while the page scrolls, and a live update leaves the page where it is. On a narrow
window the panel sits under the graph. The panel shows its facts (host, process, version; a
master’s ID and role; a worker’s state, queues and master), its problems, and its
configuration as TOML, without the settings that aren’t set. A webserver’s, master’s or
worker’s panel also charts its process’s memory by part over the last 24 h, loaded when the
panel opens, with a link to its row on the Metrics page. The UI’s panel also says who
is signed in ([ui.auth]; in standalone, [webserver.auth]; anonymous without
authentication) and lists its connections: each deployment’s webserver with its schedr
version (marked differs when it isn’t the UI’s), how long it took to answer, how the UI
proves itself to it (none, token, mTLS, token and mTLS, or in process in
standalone), and who the webserver took the request as (the person the UI passed on). One
that can’t be reached says why. A webserver’s panel says how long it took to answer and who
it took the UI’s requests as.
The page updates while it is open: with the workers’ changes, and every 15 s for the
masters (a takeover, a master started or gone, their problems). An open panel stays open
across an update. Each node’s panel has its own address (/deployments#node.<deployment>.master.<id>),
which the Workers and Import errors pages link to.
Secrets¶
Configurations. Each node masks its own configuration before it leaves its process: a
master before writing it to the database, a worker before sending it to the master, the
webserver before serving it. The master masks a worker’s again, and the UI masks every
configuration again before showing it, so a node that didn’t (an older or altered one)
still shows no secret. A URL keeps its scheme, user, host, port and path, and its password
reads **** (postgres://schedr:****@db:5432/schedr), with a scheme or without
(schedr:****@db:5432). The password may hold @, :, /, ' or parentheses. Any
name=value or name: value is masked the same way, in a URL’s query, a DSN (host=db password=****) or a message, when the name names a secret. The name is compared without
case, _, -, . or spaces. It names a secret when it contains password, passwd,
pwd, secret, token, credential, apikey, privatekey or accesskey, or when it
is key or ends in key. A setting with such a name reads **** whole, whether it holds
a string, a number, a list or a table. An empty string, or a setting that is unset, is
left as it is. A setting whose name ends in file, files, path, paths, dir,
header or env
(token_file, [tls] key_path) is shown: it points at the secret. So is [tls] key when
it holds a path. A key anywhere else is masked, whether or not the value contains /.
Secrets in the configuration come only from environment variables, never the configuration
file. The masking is a second guard for what a URL or a setting carries anyway.
Error texts. An error text that is shown is masked the same way as a configuration’s
text: a password in an address, a value after a name like password=. That covers a file’s
import error and its traceback, a task attempt’s error and traceback, a master’s problems
and a worker’s warnings. The webserver masks those, and the UI masks them again. An error
the UI or the CLI reads from a failed request is masked as it is read, including a
webserver’s address quoted in it.
Task logs. A task’s log is masked by its text when it is shown, by the webserver, so
the API, the UI and schedr tasks logs show it masked: a password in an address, a value
after a name like password=. The webserver passes whole lines only. A part asked from
inside a line starts at the next one, and a running attempt’s last line waits until that
line ends. A line longer than the part asked for is shown to its last whitespace in that
part, then … (the rest of this line is not shown: it is over N bytes), and the rest of
the line is passed over. N is how many bytes of the line that part held. A part with no
whitespace shows only that note. schedr tasks logs, and the page while it follows a log,
ask for 1 MiB at a time and start at a line, so this cut is a line over 1 MiB. The worker’s
file keeps the line whole. Each part is masked together with the 64 KiB before it, which is
not shown, so a value that began in those bytes is hidden in the part too: a quoted value
that runs on over the next lines (a key’s PEM block), or a password= whose name is there.
A quoted value begun more than 64 KiB before a part is not seen from that part: its lines
in the part are shown as they are.
Task outputs and handles. Handles shown in the API and UI are masked as task data. An
output is masked by its text the same way. A field is **** when a
whole word of its name names a secret. Words split at anything but a letter or a digit,
before a capital that follows a lower-case letter or a digit (apiKey is api and
key), and before the last capital of a run when a lower-case letter follows
(HTTPPassword is http and password; AWSAccessKeyId is aws, access, key and
id). Such a word is password, passwords, passwd, pwd, passphrase, secret,
secrets, token, tokens, credential, credentials, apikey, privatekey,
accesskey or secretkey, or key after api, private, access or secret. So
password, api_key, apiKey, clientSecret and access_token are hidden, and
partition_key, sort_key and cache_key are shown: a task names its own fields as it
likes. An empty string or a null field is left as it is. A field’s name is masked as a
text too (an output keyed by an address shows its password as ****); two names masked
alike are told apart as <name> (2). That is the page’s view only: downstream tasks get the
output as it was stored. A secret’s value was already replaced by **** on the worker,
before the output was stored (Secrets).
Metrics¶
The header’s Metrics opens /metrics: each deployment’s memory and CPU over time, from the
samples the leading master stores once a minute (see
Samples of each process), and its attempts: how many
ended and how soon they started. It is the UI’s page, not the
processes’ Prometheus /metrics, which stays on their ops port (see
Observability).
Above the charts you choose the range: 1 h, 24 h (at first), 7 d or 30 d. When the UI shows more than one deployment, you can also choose one of them or all. Each point is a bucket’s average: a minute over 1 h, 6 minutes over 24 h, 45 minutes over 7 days, and 3 hours over 30 days, the last two from the 15-minute rollups and the minutes since the last one (a process started since shows at once). A gap in a line means no sample there: the process wasn’t running, or no master was leading. The axes are in the browser’s time zone.
A process’s memory is its whole memory: the process itself and, for a worker, its fork servers, its wait step hosts and its running tasks, which are processes of their own. A worker’s line so includes the tasks it runs. Each deployment has three charts of its processes and a table, then two charts of its attempts:
Memory: each process’s memory. The 8 running processes with the highest peaks over the range are lines, each in a colour of its own that stays with it while those eight stay the same. The other running ones are one grey band, from the lowest of them to the highest at each point. The processes that ended in the range (stopped, or restarted: a restarted process is a new one) are one line together, their memory added up, in the last colour, taking the place of the eighth running one; a process has ended when the master hasn’t sampled it for three of its sample intervals (three minutes). A process in a container with a memory limit has its latest limit dashed in its line’s colour, when the limit is within four times the chart’s top (a far higher one would flatten the lines).
Memory by kind: the deployment’s memory stacked by kind: masters and webservers, workers, fork servers, wait step hosts and tasks. Its legend gives each kind’s memory now. A process that runs a worker counts as a worker (a standalone is one). A kind none of its processes had over the range is left out.
CPU: the cores each process used, in the same colours. This is the process’s own CPU: a task’s CPU isn’t sampled.
The table lists every running process (a note under it counts those that ended): what it runs, Now (its whole memory), Itself (the process alone), a worker’s Tasks, its Peak over the range, its container’s memory and limit, Use (the container’s memory as a share of its limit, red from 90 %), and its cores now. Hover over Now for every part. Click a heading to sort by it (by peak at first).
Attempts ended: a bar for each point, the attempts that ended in it stacked by how: succeeded, failed (also timed out and killed for memory) and stopped (cancelled, interrupted, lost with their worker, or an assignment taken back). Its legend gives each one’s total over the range.
Start latency: for the attempts that started in each point, the median (p50) and the 95th percentile (p95) of the time from their assignment to a worker to the task’s start there, both in the master’s time. It is how fast a worker launches what it is handed, so the time a task waits before any worker takes it (no free slot, a limit) isn’t in it: the task panel’s reason shows that wait. A point where nothing started has no value: the lines break there. Its legend gives each one’s highest over the range.
Hover over a chart for every value at that point. A process is named by what it runs, with
each node’s ID: master …0d3a9c1f · worker standalone · webserver …0d3a9c1f for a standalone.
Clicking a row opens its panel beside the charts: that process’s memory over the range,
stacked by part (the process itself, and a worker’s fork servers, wait step hosts and tasks),
its container’s memory as a line and its limit dashed. Below are what each part uses now and a
worker’s largest running tasks, each linking to its run. The panel’s address names the process
(/metrics?deployment=prod&process=<id>), so it can be shared or bookmarked; × closes it.
The attempt charts are read from the attempts themselves, so they need no samples: they show
from the first attempt, and the history the database keeps ([retention]). Each count and
percentile is exact, not estimated.
The page reads itself again once a minute while it is open, as the samples come. A deployment that can’t be reached is named in a warning; the others are still charted. When only its attempts can’t be read, a warning says so and its processes’ charts stay.
The webserver keeps the points that can’t change any more (those that ended 15 minutes ago and
more) between reads, so a range is read whole only the first time it is asked for after the
webserver starts; each read after reads only the last few points. On SQLite, a first read of 30
days of a hundred processes takes a few seconds, and each later read a few milliseconds. The
attempt charts are kept the same way: on SQLite, a first read of 30 days of a million attempts
takes several seconds (once after each start of the webserver), the later reads milliseconds. A
kept point isn’t read again, so attempts deleted after it was read (by [retention] runs
shorter than the range, or with their run) are still counted in it until the webserver
restarts.
If a process’s clock is more than 15 minutes behind, its samples can arrive in buckets
the webserver has already cached. Those samples appear only after the webserver restarts,
and they miss the 15-minute rollups too.
The 15 minutes and the cache’s size are hidden settings, SCHEDR_HIDDEN__WEBSERVER__METRICS_*
(see Fixed timings).
Import errors¶
The header’s Import errors opens /import-errors. The count
in the header is loaded with each page, not by the events stream. It is the number of
failed files, held and transient together, from the deployments that answered. While that
number is 0 the count is absent, and the header reads “Import errors”. A deployment that
did not answer is left out of the count. The page itself does not update while it is open.
The page lists the files of each root’s current code that failed to import. A DAG defined
in a file that raised, or that the master refused, stays listed on the last version that
imported, when it had one, and is held until the file is fixed. A timeout or a runner that
died holds nothing: the file is parsed again, and its DAGs stay on that version meanwhile.
Parsing is which errors those are. A warning
or a TypingHint is not listed; schedr dags check shows those.
The columns are Root, File, Error, Parsed, Master and Worker. With more than one deployment,
a Deployment column comes first. Error is the exception, then the message, and the traceback
under Traceback. Parsed is when that file was parsed, then the first 12 characters of its
content hash’s last segment. Master is the master that stored the parse, by the last 8
characters of its ID (- for a parse stored by an older master), and Worker the worker that
parsed it. Each links to its node on the Deployments page. A retry records its own worker
and time only on the files it replaces
(Parsed again). An empty page says “No import errors.” A
deployment that can’t be reached is named in a warning, as on the DAG list, and the files
of the others are still listed.
Light and dark¶
A button at the right of the header switches between a light theme and a dark theme. The choice is remembered in the browser and applied as the page loads, before it is shown. Before a choice, the page follows the system’s light or dark setting. Colour marks states and warnings.
Times¶
A time is shown in UTC and in the browser’s zone, for example 2026-10-15 01:00 UTC (03:00 CEST). The local date is included when it differs from the UTC date. When the zone is UTC,
only the UTC time is shown. Seconds appear when they are not zero. On a schedule, the
window’s bounds stay in the short form the CLI uses: UTC, with the browser zone’s offset
once that zone is known (2026-01-01 00:00Z (local:+1h)). Until then the offset is left
out.
The page reads the browser’s zone and remembers it. The first view is UTC only, and a note at the bottom says “Times in UTC (the local time zone isn’t known yet).” It then loads once more, so the same page shows both. If the browser stores nothing, the note stays and the times stay UTC.
A path prefix¶
A gateway that serves schedr under a prefix and removes it sets X-Forwarded-Prefix. The
chart’s VirtualService does (see Deployment). The
UI’s links, the stylesheet, the live streams and /docs included, start with that prefix.
The prefix has to be a plain path: a /, then letters, digits, -, _, . and ~, with
no .. and no //. A trailing slash is dropped, so /service/schedr/ is /service/schedr. Anything else
is ignored, and the links start at the root. Each answer carries Vary: X-Forwarded-Prefix,
so a cache keeps one copy per prefix.
The documentation¶
/docs serves the documentation: this guide, Writing DAGs, the design log and the generated
reference. It is separate from Swagger UI at /api/v1/docs/, which describes the REST API.
The header links to /docs when the documentation is served. /docs redirects to /docs/
so the site’s own relative links work, and the redirect keeps the path prefix. Only files
inside the documentation directory are served.
The base, slim and server images include that site at /usr/share/schedr/docs, which is the default of
[ui] docs_dir. It is the site make docs builds, without the Rust API reference. Set
docs_dir to "" to serve none. A path that is empty or not a directory also serves none:
the UI still starts, and the header has no Docs link. A schedr you built yourself has no
such directory until docs_dir points at one, for example site after make docs.
Settings¶
schedr ui reads [ui]. It needs no database. It is ready once it listens, on the usual
ops port (see Observability), and it has no loop of its own, so it is
alive while it answers. Ctrl-C or SIGTERM stops it.
Key |
Default |
Meaning |
|---|---|---|
|
|
The address |
|
|
The HTTP port of |
|
none |
Required. Each entry is a name, the webserver’s URL and, where the UI proves itself by a token, its |
|
|
|
|
|
The documentation served at |
Standalone uses docs_dir and takes authentication from [webserver.auth]. It ignores
[ui.auth], bind, port and deployments: the UI is on
the REST API’s address, and the deployment is default.
[ui]
bind = "0.0.0.0"
port = 8082
[[ui.deployments]]
name = "etl"
url = "http://schedr-webserver.etl.svc:8080"
[[ui.deployments]]
name = "ml"
url = "http://schedr-webserver.ml.svc:8080"
The URL is the webserver’s REST API (http://schedr-webserver:8080). It is contacted when a
page is opened. A wrong URL shows that deployment unavailable and leaves the UI running. The
configuration reference lists the keys.
Running it, and where standalone puts the pages, is
Deployment.