-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Description
NetBox version
v.3.1.9
Feature type
Change to existing functionality
Proposed functionality
Currently all old JobResults are deleted when a new JobResult is in a terminal state. I propose that old JobResults are preserved.
Use case
Deleting old JobResults make it hard to use for automation through the API. Imagine a case where two runs of the same script is triggered via. the API. The API returns an id for the JobResult that can be used to query for the result. The RQ worker will run the scripts one after the other. When the first script finishes, you have the runtime of the second script to get the result. If you do not retrieve the result before the second script finishes, the JobResult is deleted and impossible to retrieve.
Also contributing to the issue is that JobResults are not webhook enabled, which could provide a workaround in some cases. But that's a different feature request.
Database changes
None
External dependencies
No response