mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-11 05:42:19 +00:00
Since the backfill resumes per collection, a slice that ends before the whole history is in threw "backfill incomplete" so pg-boss retried it, which logged job.run.failed at error and grew the queue's failure count although nothing had failed. A slice that finished at least one more collection now queues the next slice on the admission queue under its own singleton key and completes. Only a slice that finished nothing new still throws, so a backfill that is actually stuck keeps its error. The import lock keys on the import identity without the slice number, and a slice that finds the import already stamped walks nothing.