Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Cutover fails for waiting built-in Jobs with an empty queue name

オープン 初心者向け
#64 コメント 0 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@pheus がすでに取り組んでいます。

2026年10月29日 から。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
75/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
python
領域
backend

調査の方向性

Jobのqueue_nameをdjango_rq.get_queue()に渡す移行カットオーバーのコードから確認します。issueによると、同じ検索処理がmainの7b7cdf1にもあります。queue_nameが空の待機中の組み込みJobで再現し、既存のRQタスクと存在しないRQタスクの両方について、カットオーバーの動作を確認します。カットオーバーが空のqueue_nameをNetBoxのフォールバックで処理し、存在しないタスクを未処理例外なしで報告すれば完了です。

索引モデルが issue の本文から書いたものです。

説明

app: scripts severity: low status: accepted type: bug
Plugin Version

v0.0.1

NetBox Version

v4.7.3

Python Version

3.12

Steps to Reproduce
  1. On a test installation, upload a built-in Custom Script and schedule it to run tomorrow.
  2. In the NetBox shell, clear that Job's queue name to reproduce the state of a Job created before NetBox v4.5.2. Replace 123 with the test Job's ID:
    from core.models import Job
    
    Job.objects.filter(pk=123).update(queue_name='')
    
  3. Under Scripts > Migration, run inventory and stage the Projects. Wait for their revisions to become valid.
  4. 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

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

netbox-community/netbox-scripts のほかの issue

netbox-community/netbox-scripts の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。