Scripts ran using manage.py runscript don't show up in the script's history #10166

Closed
opened 2025-12-29 21:27:43 +01:00 by adam · 0 comments
Owner

Originally created by @XioNoX on GitHub (Aug 30, 2024).

Originally assigned to: @jeremystretch on GitHub.

Deployment Type

Self-hosted

NetBox Version

v4.0.8

Python Version

3.11

Steps to Reproduce

  1. Create a script/report
  2. Run it with python manage.py runscript cables.Cables

Expected Behavior

The Jobs related to the script should show up in the script's job tab (/extras/scripts/21/jobs/) for example as well as through the API when querying for the latest's run of the script.

In our usecase (we recently upgraded from Netbox 3.2) we use a systemd timer to run the scripts/reports periodically, and then our monitoring fetch the status of the latest run through the API for alerting.

Observed Behavior

The Script's job properly runs and is visible in the overall Job's page, but not under the Script itself.
Screenshot 2024-08-30 at 17-18-28 Jobs NetBox
Screenshot 2024-08-30 at 17-19-12 Cables NetBox

Originally created by @XioNoX on GitHub (Aug 30, 2024). Originally assigned to: @jeremystretch on GitHub. ### Deployment Type Self-hosted ### NetBox Version v4.0.8 ### Python Version 3.11 ### Steps to Reproduce 1. Create a script/report 2. Run it with `python manage.py runscript cables.Cables` ### Expected Behavior The Jobs related to the script should show up in the script's job tab (/extras/scripts/21/jobs/) for example as well as through the API when querying for the latest's run of the script. In our usecase (we recently upgraded from Netbox 3.2) we use a systemd timer to run the scripts/reports periodically, and then our monitoring fetch the status of the latest run through the API for alerting. ### Observed Behavior The Script's job properly runs and is visible in the overall Job's page, but not under the Script itself. ![Screenshot 2024-08-30 at 17-18-28 Jobs NetBox](https://github.com/user-attachments/assets/7ab19e1d-335d-4379-9dcb-ec8976264b3a) ![Screenshot 2024-08-30 at 17-19-12 Cables NetBox](https://github.com/user-attachments/assets/dcdc925f-337a-4528-8f64-e66fcafcebfe)
adam added the type: bugstatus: acceptedseverity: low labels 2025-12-29 21:27:43 +01:00
adam closed this issue 2025-12-29 21:27:43 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#10166