Skip to content

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

Closed
@XioNoX

Description

@XioNoX

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

Metadata

Metadata

Assignees

Labels

severity: lowDoes not significantly disrupt application functionality, or a workaround is availablestatus: acceptedThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions