Coalesce live snapshot refreshes across application workers #434

Merged
timmy merged 1 commits from timmy/433-shared-live-snapshot into main 2026-08-09 23:21:59 +00:00
Owner

Closes #433

What changed

  • persist live snapshot content, per-section freshness/backoff, and revisions atomically in private SQLite state
  • coordinate workers with an expiring refresh lease and stale-while-revalidate reads
  • preserve cross-worker notification filtering and recover from cancellation, lease expiry, reboot, and state-store outages

Verification

  • strict RED/GREEN behavioral coverage for lease races, atomic publication, expiry recovery, wall-clock persistence, cooldown behavior, cancellation cleanup, private permissions, and store outages
  • python3 -m pytest tests/test_live_snapshot_store.py tests/test_live_snapshot.py tests/test_notification_read.py -q — 34 passed
  • python3 -m pytest -q — 840 passed
  • python3 -m compileall -q src tests
  • git diff --check
Closes #433 ## What changed - persist live snapshot content, per-section freshness/backoff, and revisions atomically in private SQLite state - coordinate workers with an expiring refresh lease and stale-while-revalidate reads - preserve cross-worker notification filtering and recover from cancellation, lease expiry, reboot, and state-store outages ## Verification - strict RED/GREEN behavioral coverage for lease races, atomic publication, expiry recovery, wall-clock persistence, cooldown behavior, cancellation cleanup, private permissions, and store outages - `python3 -m pytest tests/test_live_snapshot_store.py tests/test_live_snapshot.py tests/test_notification_read.py -q` — 34 passed - `python3 -m pytest -q` — 840 passed - `python3 -m compileall -q src tests` - `git diff --check`
timmy added 1 commit 2026-08-09 23:20:41 +00:00
perf: share live refreshes across workers (#433)
All checks were successful
CI / lint (pull_request) Successful in 48s
CI / build-release (pull_request) Successful in 5s
CI / release-candidate (pull_request) Has been skipped
3224389441
timmy merged commit e0de45ea90 into main 2026-08-09 23:21:59 +00:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: stackchain/stackchain-dashboard#434
No description provided.