Patreon: enforce the backfill time-box mid-post (stop soft-limit overruns) #78
Reference in New Issue
Block a user
Delete Branch "dev"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
All CI-green on dev (run 642).
A native Patreon backfill chunk's time-box (600s) was only checked between posts, but
download_postdownloads all of one post's media synchronously — so a media-heavy post (Pocketacer, event #41330) ran the chunk to the Celery soft limit (1350s) and finalized as error. Now the deadline is polled before each media item (should_stop()), so a heavy post stops at the budget and the remaining media re-fetch next chunk — overrun bounded to one media download instead of one whole post. Also genericized the soft-limit salvage message (it wrongly blamed the "gallery-dl subprocess" for a native walk).619e771fix +14c4dd1deterministic-clock test adjustment. Known residual (a single large streamed file can still overrun by its own download time) is documented in Scribe #723.🤖 Generated with Claude Code