A built-in run cancelled by migration cutover can still execute
Maintainer thường phản hồi trong vòng 1 ngày
@pheus đang làm issue này rồi.
Từ ngày 23/10/2026.
Đá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
- 45/100
Hướng nghiên cứu
Reproduce the race through Customization > Scripts and Scripts > Migration with one RQ worker, following the linked migration guide's worker arrangement. Observe the queued task across cancellation, cutover, and repointing, including a recurring run. Done means a cancelled built-in run does not execute, its eligible replacement runs once through the plugin, and no later built-in occurrence survives the completed cutover.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Plugin Version
v0.0.1
NetBox Version
v4.7.1
Python Version
3.12
Steps to Reproduce
- Under Customization > Scripts, schedule a built-in Custom Script to run a few minutes ahead. Use a recurring run to observe the scheduling effects as well.
- Under Scripts > Migration, run inventory and Stage Projects, then wait for valid revisions. Keep one RQ worker running.
- Select Enter cutover so cancellation overlaps the scheduler queueing the now-due run. This is a timing race. With Accept concurrent workers selected, a second worker taking the run just before cancellation can produce the same result.
- Run Activate Projects, then Repoint references.
Expected Behavior
A run reported as cancelled does not execute on the built-in side. Its eligible replacement executes once through the plugin.
Observed Behavior
The built-in Script executes despite the cancellation. Its Job changes from Failed back to Running. If it starts after repointing has recreated the run, both versions execute.
A recurring run also queues another built-in occurrence. The Jobs page may associate that occurrence with the replacement Script even though it still executes the built-in Script. The completed cutover does not cancel it, so the built-in schedule continues and cleanup retains its module.
NetBox starts the Job from the queued task's copy without checking the intervening cancellation. The migration guide describes the scheduler window.
- Ngôn ngữ chính
- Python
- Star
- 8
- Fork
- 0
- Merge trung bình
- 11 giờ 35 phút
- Pull request đã merge (30 ngày)
- 20
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của netbox-community/netbox-scripts
-
app: scripts severity: medium status: backlog type: bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
netbox-community/netbox-scripts#83 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
app: scripts status: backlog type: documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
netbox-community/netbox-scripts#80 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
app: scripts severity: medium status: backlog type: bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
netbox-community/netbox-scripts#79 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
app: scripts severity: medium status: backlog type: bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
netbox-community/netbox-scripts#77 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
app: scripts severity: low status: backlog type: bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
netbox-community/netbox-scripts#76 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của netbox-community/netbox-scripts
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 79/100
aws-samples/sample-per-model-bedrock#639 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 86/100
awslabs/visual-asset-management-system#937 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 79/100
project-codeflare/codeflare-sdk#1195 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Bump numpy dependencyĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
pandas-dev/pandas-stubs#2051 ·
Maintainer thường phản hồi trong vòng 1 ngày