A built-in run cancelled by migration cutover can still execute
维护者通常 1 天内回复
@pheus 已经在做这个了。
开始于 2026年10月23日。
评估
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
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.
- 主要语言
- Python
- 星标
- 8
- 派生
- 0
- 平均合并
- 11 小时 23 分钟
- 30 天内合并 PR
- 24
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
netbox-community/netbox-scripts 的其他 Issue
-
app: scripts severity: low status: backlog type: bug
难度 2/5 1-3 小时 新手友好度 85/100
netbox-community/netbox-scripts#94 ·
维护者通常 1 天内回复
-
app: scripts severity: medium status: backlog type: bug
难度 2/5 1-3 小时 新手友好度 72/100
netbox-community/netbox-scripts#83 ·
维护者通常 1 天内回复
-
app: scripts status: backlog type: documentation
难度 2/5 1-3 小时 新手友好度 85/100
netbox-community/netbox-scripts#80 ·
维护者通常 1 天内回复
-
app: scripts severity: medium status: backlog type: bug
难度 1/5 1 小时以内 新手友好度 88/100
netbox-community/netbox-scripts#79 ·
维护者通常 1 天内回复
-
app: scripts severity: medium status: backlog type: bug
难度 2/5 1-3 小时 新手友好度 72/100
netbox-community/netbox-scripts#77 ·
维护者通常 1 天内回复
查看 netbox-community/netbox-scripts 的全部 Issue
相似的 Issue
-
[Bug]: Responses API 500s on assistant message with empty content list可能已有人在做 @shadowmodder 今天认领。 未关闭bug
难度 2/5 1-3 小时 新手友好度 66/100
vllm-project/vllm#64940 ·
维护者通常 1 天内回复
-
limits
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
Status: Triage Type: Quest
难度 2/5 1-3 小时 新手友好度 66/100
GTNewHorizons/GT-New-Horizons-Modpack#27490 ·
维护者通常 1 天内回复
-
LLM.save() discards the model's active prompt style可能已有人在做 @remote-controlled-man 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
Lightning-AI/litgpt#2378 ·
维护者通常 23 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复