thermograph/web
Emi Griffith 22019bc632 Persist the homepage feed to Postgres instead of a per-replica file (#232)
homepage.json lives on the appdata volume today, written by whichever
process's notifier last refreshed it. Under Swarm each web replica has its
own disk, so a file only one replica's notifier ever writes leaves every
other replica reading a stale or missing feed indefinitely.

On Postgres, refresh()/load() go through store.py's existing derived-payload
table instead (a fixed sentinel key, since the feed isn't cell-scoped) - a
single upsert is already atomic, and every replica reads the same row.
store.IS_POSTGRES is False without THERMOGRAPH_DATABASE_URL, so dev/tests
keep the plain file path entirely unchanged; no existing test needed to
change.

Verified live against real Postgres: refresh() persists into the shared
derived table and load() reads the exact same feed back.
2026-07-21 00:24:17 +00:00
..
__init__.py Split the backend into domain packages (#217) 2026-07-20 05:31:03 +00:00
app.py Add a Postgres advisory-lock leader election for multi-host deploys (#229) 2026-07-21 00:07:52 +00:00
content.py Split the backend into domain packages (#217) 2026-07-20 05:31:03 +00:00
homepage.py Persist the homepage feed to Postgres instead of a per-replica file (#232) 2026-07-21 00:24:17 +00:00
schemas.py Split the backend into domain packages (#217) 2026-07-20 05:31:03 +00:00
views.py Score every metric equally in the overall total (#218) 2026-07-20 05:45:57 +00:00