mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-08 12:32:43 +00:00
Removes the operator step that was implicit in the v1.4.35 foundation release. Self-hosters no longer need to run scripts/backfill-rollups after upgrade; the worker boot discovers any account with measurements but no rollup coverage and enqueues a one-shot full fold via pg-boss. New rollup-full-backfill queue + handler folds one user per job at serial concurrency. enqueueBootTimeRollupBackfill runs once at startReminderWorker boot, idempotent across reboots via the discovery query (matches only zero-rollup accounts) and a singleton-key per user so fast restarts coalesce. Best-effort: discovery errors surface through the helper's return value and are logged via workerLog; the worker boot never fails because the backfill missed. Tests: 4285 unit + 230 integration. tsc + lint clean.