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

未关闭
#1,127 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 3 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
18/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
python
领域
backend

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

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

主要语言
Python
星标
55
派生
26
平均合并
3 天 3 小时
30 天内合并 PR
8

环境准备

  • 提供 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 没有贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

ReactionMechanismGenerator/ARC 的其他 Issue

查看 ReactionMechanismGenerator/ARC 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。