Custom Script initialisation via API requests full execution history of that script for no obvious reason #17333
Labels
severity: low
Does not significantly disrupt application functionality, or a workaround is available
status: accepted
This issue has been accepted for implementation
type: bug
A confirmed report of unexpected behavior in the application
Deployment Type
Self-hosted
NetBox Version
v4.0.10
Python Version
3.12
Steps to Reproduce
Expected Behavior
The script execution job should be added to the background queues list faster than it is.
Observed Behavior
When the API call is first received by netbox it performs an SQL query requesting the entire execution history for that script:
This query takes a long time to transfer the volume of data in the table due to the size of the execution history and it waits for this to finish before the job is inserted into the table:
As far as i can tell there is no reason to perform this query as it is not performed when initialising a custom script execution through the frontend.
The text was updated successfully, but these errors were encountered: