A transient failure makes automatic reduction skip a run for good
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 25/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Da chiarire
- Stato di attività
- Attiva
- Stack tecnologico
- python
- Ambito
- backend, data-engineering
Direzione di ricerca
Read rules.py at TriggerLoop._requests, automatic-reduction.md under “The trigger loop,” and the linked requirements question in docs/requirements/data.md. Compare the failure cases and prior art in docs/developer/prior-art/; the issue leaves three design questions open. Done requires a decided approach for distinguishing or retrying failures and dataset readiness, with the related behavior and documentation specified.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
The trigger loop counts any record under a rule's label as handled, including a failed one (TriggerLoop._requests in rules.py; automatic-reduction.md, "The trigger loop"). That avoids retrying a dataset that fails at every step. But failed covers three cases that a driver cannot tell apart, since a failed record holds only str(error):
- the workflow raised, or reported a failure;
- the framework could not run it: a dataset could not be read, or a write failed;
- the process died without a Python exception (out-of-memory kill, segfault), which the service must capture from the console and the batch system.
So a transient failure loses a run for good: a slow or missing /ess mount, or a dataset source that lists a run before its file is complete. Mantid's reflectometry autoprocessing hit exactly the second case in 2024 (mantidproject/mantid#36860); they fixed it by listing only runs already in the data cache, not by retrying.
Prior art, in docs/developer/prior-art/ (#67):
- AiiDA ends a process
Finishedwith a declared exit code,Excepted, orKilled; restart handlers key on exit codes. Transient transport failures are retried with backoff and then paused for a person, not failed. - Snakemake on Slurm takes
OUT_OF_MEMORY,TIMEOUT, andNODE_FAILfrom the batch system, not from the job. - Mantid never retries failed rows automatically; a user selects them and processes again.
Questions:
- Should a failed record say which kind of failure it was, so that an application can decide retries (relevant to #33, where rules move into applications)?
- Should the service retry framework failures, such as an unreadable dataset, before it fails a record (#27)?
- Should the dataset source promise to list a dataset only once its file is complete? This ties to the Open question in
docs/requirements/data.mdon how long after the file writer finishes the catalogue lists a run.
- Lingua principale
- Python
- Stelle
- 0
- Fork
- 1
- Merge medio
- 9h 23m
- PR unite (30g)
- 65
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di scipp/essapps
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
I maintainer di solito rispondono entro 1 giorno
-
A number that is not finite is stored as None at a field that accepts NoneForse già presa @jeevanabhi-r l’ha presa 5 giorni fa. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
scipp/essapps#140 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
I maintainer di solito rispondono entro 1 giorno
-
Technique apps: the batch as the main page, and inspecting a value before a long reductionForse già presa @SimonHeybrock l’ha presa oggi. Aperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
scipp/essapps#162 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
scipp/essapps#152 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di scipp/essapps
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
volcengine/OpenViking#7347 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
duolicious/duolicious#1943 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
fedora-infra/anitya#2166 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
NVIDIA/auto-ontology#486 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 69/100
NVIDIA/SkillEvaluator#446 ·
I maintainer di solito rispondono entro 2 giorni