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

Abierto
#1,127 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 3 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
18/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
python
Área
backend

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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).

Lenguaje dominante
Python
Estrellas
55
Forks
26
Merge medio
3 d 3 h
PR fusionados (30 d)
8

Preparar el entorno

  • Incluye un Dockerfile o un archivo de Docker Compose
  • Sin plantilla de pull request
  • Sin guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de ReactionMechanismGenerator/ARC

Todos los issues de ReactionMechanismGenerator/ARC

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.