mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-08 12:32:43 +00:00
pg-boss counts a job's expiry from the fetch and ends the handler at it, so a job that waited for the heavy lane spent its expiry in line: a long import let the weekly backup expire through every retry, and an upload that waited past its own expiry was failed, stopped counting as in use and lost its staged file to the sweep. A job that finds the lane taken now returns to created with start_after a minute ahead, at the same attempt, in one statement, and runs when the lane is free. The full-history integration drain joins the lane, and the guard checks that every heavy queue's policy lets a job go back to created.