bcda: adopt only jobs whose files are still served; survive a cancelled-while-adopting job #1296
Reference in New Issue
Block a user
Delete Branch "%!s()"
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?
Upstream review docs/superpowers/specs/2026-10-25-bcda-upstream-review.md §D.
completed_jobs()keeps every Task with FHIR statuscompleted, which includes Archived/Expired jobs whose files are gone (410); since bcda-app #1495 a Completed job can be DELETEd by any sandbox user and turns Cancelled (404) mid-download.completed_jobs()toendwithin 24 h (server file retention)Store.adopt: finish asfailedwith the server diagnostics, keeping the files already downloaded, instead of raising mid-wayDone in
2cc1300:Client.completed_jobs(max_age_hours=24)drops Archived/Expired jobs; downloads attempt every file and record failures per file (the files ledger keeps what landed;resumefinishes the rest).