mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-08 12:32:43 +00:00
The off-host backup walked every account in one job with the default fifteen-minute expiry, and a retry started again from the first account. On an instance with one large record next to others, an attempt that ran out of time spent its retry uploading the accounts it had already done (#1031). The run now stops between accounts once the job's time budget is spent and fails, so pg-boss retries it. Every attempt of a job carries the same creation time; an attempt skips the accounts whose ledger shows a success since then, and keys its objects on that day, so a retry after midnight still writes under the run's date. A new job uploads every account again, and a retry whose accounts were all done passes.