bcda: download manifest error files and stop a partial job from advancing the watermark
#1293
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 §A.
The completed-job manifest lists
errorfiles (one<uuid>-error.ndjsonper chunk with BFD errors pluswarnings-and-info.ndjson, FHIR OperationOutcome ndjson).Store._download_outputsreads onlyoutput, so a partial export looks complete andbcda.synctakes itstransactionTimeas the watermark — the next_sinceskips the failed enrollees' updates for good.errorentries intoexports/<key>/OperationOutcome[.N].ndjson; file rows withresource_type=OperationOutcomepartial(manifest summary / job row) whenerroris non-emptysync.watermarks()does not advance past a partial job for its types;check_sincegainspartial_job(warn) naming the keys_sincereconciles to no changeDone in
2cc1300:Store._download_outputsdownloads the manifesterrorlist asOperationOutcome[.N].ndjson, attempts every URL and raises oneDownloadError;JobInfo.partialkeeps a partial job out ofwatermarks();check_sincewarnspartial_job; Store page shows the issues;stack bcda errors KEY.