TS scans-after-freq gate: composite restart with IRC label, duplicate piped scans (post-v2.0.0)

Aperta
#1,127 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 3 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
18/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python
Ambito
backend

Direzione di ricerca

Start in arc/scheduler.py: the composite-restart branch in Scheduler.__init__ (~L853) gates on species.irc_label is None, and post_freq_actions (~L4916) calls run_scan_jobs. Read how the freq verdict respawn and the piped scan batching interact with the lease-based duplicate guard. Done means a restart regression test for "IRC done, freq verdict owed" passes, and the second-verdict test also covers piped scans without duplicate submissions.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Two restart and scan gaps in the TS scans-after-freq gate of #1126. Copilot found both at 30b946c4b. They are deferred until after the v2.0.0 tag, and #1126 stays a draft until then.

A. Composite restart is skipped once a TS has an IRC label

In Scheduler.__init__'s composite-restart branch (arc/scheduler.py ~L853), the "composite is done; do other jobs" path runs only when species.irc_label is None. Say an IRC direction finishes before the freq job, and the run then restarts before the NMD verdict. The TS then carries an IRC label, so the freq respawn (freq_verdict_owed_on_restart) and run_scan_jobs are skipped. The NMD marker stays closed with no live freq job, so the TS's rotor scans never start.

The irc_label guard is older than #1126. With #1126's closed gate, though, it becomes a lost-scan path.

Expected: let a TS with IRC endpoint labels through this branch, and keep excluding non-TS IRC endpoint species. Add a restart regression test for "IRC done, freq verdict owed".

B. A second freq verdict can submit duplicate piped scans

post_freq_actions now calls run_scan_jobs (arc/scheduler.py ~L4916). Piped scan tasks have no job_dict['scan'] entry, so the lease-based duplicate guard does not see them. Suppose a second freq verdict arrives while a pipe batch is pending, or done but not yet taken in. It can then submit the same rotors again, either piped or standalone.

Expected: exclude rotors that an active pipe run already owns before batching or falling back to standalone scans. Extend the second-verdict regression test to cover piped scans.

Refs: #1126 (review threads at 30b946c4b).

Lingua principale
Python
Stelle
55
Fork
26
Merge medio
3g 3h
PR unite (30g)
8

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ReactionMechanismGenerator/ARC

Tutte le issue di ReactionMechanismGenerator/ARC

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.