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

Đang mở
#1,127 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 3 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
18/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
backend

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
Python
Star
55
Fork
26
Merge trung bình
3 ngày 3 giờ
Pull request đã merge (30 ngày)
8

Chuẩn bị môi trường

  • Có Dockerfile hoặc tệp Docker Compose
  • Không có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của ReactionMechanismGenerator/ARC

Tất cả issue của ReactionMechanismGenerator/ARC

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.