Skip to main content

Module changes

Module changes 

Source
Expand description

What changed, for the UI’s live pages (see archive/PROJECT.md, Web UI: 34A): which run, which DAG, or the workers. Only what changed, never the new state: the UI reads that from the API.

The writes signal it themselves (triggers in the migrations): on Postgres a notification on CHANGES_CHANNEL when the writing transaction commits, read through a listening connection; on SQLite a row in changes, read by polling about once a second.

Structs§

Changes
The changes as they happen: Changes::next waits for the next ones.

Enums§

Change
Something that changed.

Constants§

CHANGES_CHANNEL
The Postgres notification channel changes are announced on.
POLL_INTERVAL
How often SQLite’s changes table is read.
POLL_ROWS
At most this many rows of changes a read.