What it shows
Every screen is for one client at a time. Pick one, then move between its screens from the sidebar; the address
names the client and the screen (#/c/acme/jobs), so a link can be shared.
- Jobs
- A job
- A batch
- Runs
- Client picker
- Serve requests
- Leases
The jobs that ran in the period, each once, the worst first: its health, its scopes counted by health now (and how many of their problems are acknowledged), its latest run, and its runs and rows in the period. The period is the last 15 minutes by default, or pick another and press Apply; a line under the list counts the jobs that did not run in it. Dates are UTC days, so everyone sees the same rows. Click a row to open the job. Filter by health, or by job or store; click a header to sort, drag its edge to resize, and use the refresh button to reload.
Filter opens a panel of conditions, one a row: pick a column, how it compares (contains, does not contain,
equals, does not equal, starts with) and type the value; Add filter adds another. Apply (or Enter) asks the
server for the rows that meet them all (case is ignored); Escape or a click outside leaves the filters as they were.
The button counts the filters applied, and each shows as a chip under the filters: its × drops it and reads the list
again. Every list has it, with its own columns.
One job, every store's, in three tabs. Summary: in a period (the last 15 minutes by default), how many runs
succeeded or failed, the success rate, the median and p95 run, the rows written, applied and rejected, its outputs and
its rejections grouped by error code. Scopes: each scope's newest batch (for a feed upload, each feed): its health,
duration, rows, the last 24 hours and any issue, filtered as Jobs are; click a row to open the batch. Runs: the
job's runs, as Runs lists them. The tabs share one period, the one of the list (Jobs or Runs) you opened the job from,
and their names count the scopes and runs in it. The line under its name gives its stores and its latest run.
One batch's story: its timeline, the other batches of its job and scope (click one to open it), its pinned config
(never its rows), what each output wrote, the apply rows not applied with their error codes and messages, the run that
made it (and the one that resumed it), a link to its logs, and the commands that settle it (state retry, abandon,
forget-key, resend, skip) or acknowledge it. Its breadcrumb leads to its job, and to its scope on the job's
Scopes tab. Where the store keeps run logs, its last panel holds the batch's lines
from the log of each run that worked on it.
Every run of every job, newest first: how it ended (succeeded, failed, skipped, or busy: another run held its lease),
its duration, the scopes it worked on (Batches: a batch each), its fan-out passes, how many of its failures no
batch shows (a lookup, a database it could not reach) and its error. Filter by status, by job, run id, store or error,
or by period, as Jobs are. The runs come from the run history: a source with
runtime.state shows its runs here too, under its name. Where a store keeps
run logs, Log counts each run's errors and warnings and opens its log.
Click a run to see it whole, as a batch page shows one batch: its batches' totals, what its outputs wrote and applied,
the scopes it worked on (a batch each, made or resumed by it, a page at a time, by status), the rows they did not
apply with the rejections grouped by error code, what failed before a batch, the items that were busy, and the state
commands that settle it: retry for the first five failed batches, then state list --request-id for all of them. A
run's batches are found by its request id: those it made, and those it resumed (each batch notes the latest run that
resumed it).
Its Log tab, where the store keeps run logs, shows the run's own log file from the top; a log longer than 200 lines
shows its last 200, and Load earlier lines reads further back. Show errors or warnings alone, search the messages,
or keep one batch's lines (pick it, or click a line's batch tag); Download gives the whole file. While the run is
still writing, new lines show every 5 seconds. A log the console's host cannot read says where it is and how to open it
there. A run that died has no history, only its log: its lease's holder leads to it, on Leases and on the overview.
The clients you may see, searchable, the ones you used recently first. Picking one opens its overview.
When a store is also a serve queue: each run a caller asked serve for, its job, caller, status and when it was queued, with its response rows and download files counted (never their values), or its error code. Newest first, a page at a time, filtered by job, run id, caller, store or error code and by when the run was queued, as Jobs are; click a header (run, job, caller, status or queued) to sort them all.
serve keeps its runs in its own state database (queue.db beside serve.yaml when it sets none), which is often not
the one your jobs record batches in. List it as another store of the client to see its runs:
stores:
main: {state: {url: "postgresql://console_ro:{{ secrets.password }}@db/sw"}} # the jobs' state
serve: {state: {url: "sqlite:////srv/streamwright/serve/queue.db"}} # serve's run queue
Who holds which job's lease now: the holder (<run id>/<host>:<pid>:<random>), the epoch, and when it expires. A
lease row lives while a run holds it; an expired one is a run that died, taken over by the next run. Filter by state
(held or expired), and by job, token, holder or store. Where the store keeps run logs, the holder's run id opens that
run's log.
The screenshots show made-up clients, ids and errors.
Health
Each job and scope has a health:
| Health | Meaning |
|---|---|
failed | Its latest batch failed or was abandoned. |
held | A batch (the latest or an older one, not abandoned) has rows sent whose outcome is unknown (in_flight): check the vendor, then state resend or state skip that batch. Also a batch interrupted mid-run, which the next run resumes. |
rejected | Its latest batch completed, but the vendor rejected some of its rows and let them through (continue); the Issue counts them by tag and state show lists them. Error rules and error_threshold decide which ones fail a batch instead. |
running | A batch is under way under a live lease: its own, or the coarser one it ran under (an account's). |
ok | Its latest batch completed or was skipped, with every row applied, or rejected as a known error an error rule ignores (the Issue counts those in grey). |
A job's health on Jobs is its worst scope's, or failed when its latest run failed. The overview's Failed runs
card counts the jobs whose latest run failed where no batch shows it, for example a lookup that could not reach its
database; it opens Runs at the failed ones, in the overview's period. Each also has a run item under Needs
attention, which goes away when a later run of the job ends without such a failure.
The overview has one period, in its title bar: the last 15 minutes by default. Its cards count the scopes whose newest batch ended in it, by health, and the failed runs that ended in it; Needs attention lists what happened in it and, when nothing did, says how many earlier items need a person. The number beside Overview in the menu counts what needs a person, at any time.









