Cutover fails for waiting built-in Jobs with an empty queue name
メンテナーはふだん 1 日以内に返信
@pheus がすでに取り組んでいます。
2026年10月29日 から。
評価
調査の方向性
Jobのqueue_nameをdjango_rq.get_queue()に渡す移行カットオーバーのコードから確認します。issueによると、同じ検索処理がmainの7b7cdf1にもあります。queue_nameが空の待機中の組み込みJobで再現し、既存のRQタスクと存在しないRQタスクの両方について、カットオーバーの動作を確認します。カットオーバーが空のqueue_nameをNetBoxのフォールバックで処理し、存在しないタスクを未処理例外なしで報告すれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Plugin Version
v0.0.1
NetBox Version
v4.7.3
Python Version
3.12
Steps to Reproduce
- On a test installation, upload a built-in Custom Script and schedule it to run tomorrow.
- In the NetBox shell, clear that Job's queue name to reproduce the state of a Job created before NetBox v4.5.2. Replace
123with the test Job's ID:from core.models import Job Job.objects.filter(pk=123).update(queue_name='') - Under Scripts > Migration, run inventory and stage the Projects. Wait for their revisions to become valid.
- Select Enter cutover.
Expected Behavior
Cutover uses NetBox's queue fallback for older Jobs. It captures the schedule if its RQ task exists, or reports the missing task without an unhandled exception.
Observed Behavior
The cutover Job ends as Errored with KeyError: '', and the cutover step remains incomplete. Retrying fails on the same Job.
NetBox v4.5.2 added Job.queue_name without backfilling existing rows. These Jobs have an empty queue name, which cutover passes directly to django_rq.get_queue().
This also affects pending Jobs and does not require the RQ task to be missing. The same lookup is present on main at 7b7cdf1.
- 主要言語
- Python
- スター
- 8
- フォーク
- 0
- 平均マージ
- 11時間 35分
- マージ済み PR(30日)
- 20
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
netbox-community/netbox-scripts のほかの issue
-
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 日以内に返信
-
app: scripts severity: low status: backlog type: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
netbox-community/netbox-scripts#76 ·
メンテナーはふだん 1 日以内に返信
netbox-community/netbox-scripts の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
-
Validate finite output clamping limits in StepPredictor.prepare_clamping_params to prevent silent NaN/Inf propagation対応中かも @muskan-creates352 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
mllam/neural-lam#848 ·
メンテナーはふだん 2 日以内に返信
-
infra
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
fab-geocommuns/RNB-coeur#1166 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
deepspeedai/DeepSpeed#8951 ·
メンテナーはふだん 2 日以内に返信