mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-08 12:32:43 +00:00
A resumable collection counted the pages it had written across every backfill attempt and stopped at its ceiling (10,000 for heart rate). A watch that records heart rate every few seconds reaches that count two to three years back, and since it never reset, every later slice stopped at the same place, failed as stuck, and the backfill was never stamped complete. A walk is now stopped only when it stops moving: 20 pages in a row that reach no further back than the pages before them end it. A history backfill reads back at most GOOGLE_HEALTH_BACKFILL_HORIZON_YEARS (20 when unset). A data type that ends either way counts as finished, and where and why it ended is kept in backfillProgress past the completion stamp. An oldest-first list is read whole, as before. The slice chain's ceiling is derived from sixty days of back-to-back slices instead of the old page count. An account left at the old ceiling continues from its edge with the next slice. Refs #1220