From 21c0919a67f55baf4063487621709f94905463ee Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Fri, 6 Nov 2026 20:53:58 +0000 Subject: docs: record collector error exit and pending normalisation/error handlers Co-authored-by: pi coding agent --- docs/WIP/geno-uploads-implementation-notes.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'docs') diff --git a/docs/WIP/geno-uploads-implementation-notes.md b/docs/WIP/geno-uploads-implementation-notes.md index 89bda61..1b9c1bd 100644 --- a/docs/WIP/geno-uploads-implementation-notes.md +++ b/docs/WIP/geno-uploads-implementation-notes.md @@ -182,10 +182,22 @@ collector job, runs the checks and exits non-zero on errors. On Stage 02 save, the QC job is scheduled and its id recorded in the collector job metadata (`stage03_job_id`) so re-submitting does not schedule it again. +The collector exits with `SysExit.GENERALERROR` when `FileStats.errors` is +non-empty, so malformed files stop the chain before Stage 02. + `uploader.genotypes.qc.sort_markers` is a placeholder ordering helper (chromosome, cM, Mb) that emits a warning until the appropriate ordering is established. +### Pending: normalisation, comment scoping and error handlers + +- Stage 03 will untranspose transposed files first, producing a canonical + `work_file` for QC and later stages. +- The collector will only feed comments before the data matrix into + `description`. +- Each stage will register an `error_handler` (FileStats errors shown like the + phenotypes job status page; other failures reported with recovery guidance). + ## Relationship to the background-jobs system The current job model is effectively "one script == one job". The genotype -- cgit 1.4.1