Script Job duration is wrong #7410

Closed
opened 2025-12-29 20:23:03 +01:00 by adam · 0 comments
Owner

Originally created by @mmfreitas on GitHub (Dec 22, 2022).

Originally assigned to: @kkthxbye-code on GitHub.

NetBox version

v3.4.1

Python version

3.9

Steps to Reproduce

  1. Schedule a Script to execute at any time
  2. Wait for job to be run
  3. Check duration of execution

Expected Behavior

Script execution time should be counted from the scheduled time/started and completed at.

Observed Behavior

Script execution time is being counted from creation time until completion:

image

As you can see the script only ran for one minute, however if I go and check the script result it gives me 14 hours, which correlates to the time of creation.

image

This may be happening to reports also, I don't have any to test with.

Originally created by @mmfreitas on GitHub (Dec 22, 2022). Originally assigned to: @kkthxbye-code on GitHub. ### NetBox version v3.4.1 ### Python version 3.9 ### Steps to Reproduce 1. Schedule a Script to execute at any time 2. Wait for job to be run 3. Check duration of execution ### Expected Behavior Script execution time should be counted from the scheduled time/started and completed at. ### Observed Behavior Script execution time is being counted from creation time until completion: ![image](https://user-images.githubusercontent.com/91552302/209105797-14fbf569-c60a-4e32-92f7-b66ff790264d.png) As you can see the script only ran for one minute, however if I go and check the script result it gives me 14 hours, which correlates to the time of creation. ![image](https://user-images.githubusercontent.com/91552302/209106111-c25862e2-1d9f-439e-92f5-74ffd42cdb59.png) This may be happening to reports also, I don't have any to test with.
adam added the type: bugstatus: accepted labels 2025-12-29 20:23:03 +01:00
adam closed this issue 2025-12-29 20:23:03 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#7410