Recurring Script Jobs can remain in Running status after their owner is deleted
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 45/100
調査の方向性
Start by tracing how scheduled Script Jobs are queued, rescheduled, and saved, including the Job owner and the user stored in the queued request. Reproduce the deleted-owner case and the migrated schedule case with a disabled Script. The issue is resolved when each Job reaches a terminal status, and any schedule that cannot continue records the reason in its log; whether schedules continue without an owner still needs a decision.
索引モデルが issue の本文から書いたものです。
説明
Plugin Version
v0.1.0
NetBox Version
v4.7.6
Python Version
3.12
Steps to Reproduce
- Schedule a Script from the UI to run every five minutes.
- Delete the user who scheduled the Script before its next occurrence runs.
- Allow the worker to execute the scheduled occurrence.
- Check the Job's status and whether the next occurrence has been scheduled.
The same scenario should be tested with a migrated schedule whose Script is disabled before its next occurrence.
Expected Behavior
Deleting a schedule's owner should not prevent a Script Job from reaching a terminal status.
If the schedule cannot continue, the reason should be recorded in the Job's log.
Observed Behavior
The queued Job retains a reference to the deleted user. Rescheduling can fail validation, and subsequent attempts to save the Job can raise an IntegrityError.
This may leave the Job in Running status without scheduling its next occurrence.
Additional Context
This was identified during the implementation of #201. Refreshing the owner during class execution does not cover Jobs that fail before reaching that stage or schedules carrying an existing request.
Both the Job's owner and the queued request's user need to be considered.
Whether a schedule should continue without its original owner or stop with an explanatory log entry remains to be decided. Continuing without an owner may also affect change logging and object-change event processing.
- 主要言語
- Python
- スター
- 9
- フォーク
- 0
- 平均マージ
- 18時間 59分
- マージ済み PR(30日)
- 93
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
netbox-community/netbox-scripts のほかの issue
-
app: scripts Bucket: KTLO status: backlog type: housekeeping
難易度 1/5 1〜3時間 初心者へのやさしさ 88/100
netbox-community/netbox-scripts#281 ·
メンテナーはふだん 1 日以内に返信
-
app: scripts Bucket: Improve complexity: low status: backlog type: feature
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
netbox-community/netbox-scripts#244 ·
メンテナーはふだん 1 日以内に返信
-
Correct the documentation of a Project's current revision対応中かも @pheus が今日担当しました。 オープンapp: scripts Bucket: KTLO status: accepted type: documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
netbox-community/netbox-scripts#233 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
app: scripts complexity: medium status: backlog type: feature
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
netbox-community/netbox-scripts#229 ·
メンテナーはふだん 1 日以内に返信
-
app: scripts status: backlog type: housekeeping
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
netbox-community/netbox-scripts#228 ·
メンテナーはふだん 1 日以内に返信
netbox-community/netbox-scripts の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
bad-antics/lateralus-lang#1623 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
fossguild/thelifesnake#82 ·
メンテナーはふだん 1 日以内に返信
-
Unfitted DialectClassifier crashes with a confusing ValueError: raise a clear "not fitted" errorオープンgood first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
omarelshamy25x/shamy-arabic-nlp#111 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
pietbarber/Manage2Soar#1189 ·
メンテナーはふだん 1 日以内に返信
-
BUG: write_netcdf fails on Tutorial 3 BEM output with pandas CategoricalDtype DOF coordinates対応中かも @dtgaebe が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
sandialabs/WecOptTool#467 ·