Repointing Job history hides unfinished built-in runs from migration checks
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 45/100
Research direction
Start by reading the migration steps and the Jobs verification and cleanup behavior described in the issue, then trace how Repoint references handles a scheduled Job that has not run yet. Check how the queued task retains its built-in Script association after the Job is repointed. Done means verification still identifies the unfinished built-in run and cleanup preserves the Script until that run is resolved.
Written by the indexing model from the issue text.
Description
Plugin Version
v0.0.1
NetBox Version
v4.7.4
Python Version
3.12
Steps to Reproduce
- On a test installation, upload a simple built-in Custom Script under Customization > Scripts.
- Under Scripts > Migration, complete the passes through Activate Projects, leaving Repoint references pending.
- As a superuser, schedule the built-in Script for the following day.
- Run Repoint references, then Verify.
- Run Clean up before the scheduled time, then let the run become due.
Step 3 deliberately submits a built-in run after cutover, outside the documented maintenance procedure. The issue is how migration treats that run once it exists.
Expected Behavior
The run remains identifiable as unfinished built-in work. Verification reports it, and cleanup preserves its built-in Script until the run is resolved.
Observed Behavior
Repoint references associates the Scheduled Job with the replacement Script. Verify's Jobs check then reports "No Job names the built-in feature", although the queued task still executes the built-in Script.
Clean up deletes the built-in module and marks the migration complete while the Job and its queued task remain. When the run becomes due, it ends Errored with DoesNotExist('Script matching query does not exist.').
If the run executes before cleanup instead, it runs the built-in Script, and its Job returns to the built-in association when execution starts.
Related to #4 and #99. Here, Repoint references moves an unfinished Job's association, so verification and cleanup no longer find it as built-in work. #4 covered how verification classifies Jobs that retain that association.
#99 concerns replaying a captured schedule after its deleted Job returns.
Also related: #1 and #65.
- Dominant language
- Python
- Stars
- 8
- Forks
- 0
- Avg merge
- 11h 41m
- Merged PRs (30d)
- 38
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from netbox-community/netbox-scripts
-
app: scripts Bucket: Improve status: backlog type: documentation
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
netbox-community/netbox-scripts#80 ·
Maintainers usually reply within 1 day
-
app: scripts Bucket: KTLO severity: low status: backlog type: bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
netbox-community/netbox-scripts#76 ·
Maintainers usually reply within 1 day
-
app: scripts Bucket: KTLO severity: medium status: backlog type: bug
Difficulty 4/5 3-5 days Newbie friendliness 52/100
netbox-community/netbox-scripts#114 ·
Maintainers usually reply within 1 day
-
app: scripts Bucket: KTLO severity: medium status: backlog type: bug
Difficulty 4/5 3-5 days Newbie friendliness 55/100
netbox-community/netbox-scripts#112 ·
Maintainers usually reply within 1 day
-
app: scripts Bucket: KTLO severity: low status: backlog type: bug
Difficulty 4/5 3-5 days Newbie friendliness 45/100
netbox-community/netbox-scripts#111 ·
Maintainers usually reply within 1 day
All issues in netbox-community/netbox-scripts
Similar issues
-
documentation good first issue
Difficulty 1/5 Under an hour Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
MarketSquare/robotframework-browser#5479 ·
Maintainers usually reply within 1 day
-
Visual COBOL: missing 11.0 and 12.0, and 9.0 date differs from Rocket Software's lifecycle pageOpen
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
endoflife-date/endoflife.date#11561 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
OCA/l10n-brazil#5602 ·
Maintainers usually reply within 1 day
-
documentation review-2.0.0
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
dkuenzel/meshcore-home-gateway#106 ·
Maintainers usually reply within 1 day