-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Closed
Labels
status: acceptedThis issue has been accepted for implementationThis issue has been accepted for implementationtype: featureIntroduction of new functionality to the applicationIntroduction of new functionality to the application
Description
NetBox version
v3.5.4
Feature type
Change to existing functionality
Proposed functionality
One of the downsides of scripts now being run as background tasks, with the results being polled, is that even a trivial script takes 5 seconds to produce a response.
e.g. even a simple script like this, still takes 5 seconds before its result is shown in the UI:
I propose that either:
- the first poll is done 1 second after the job is submitted, and then 5 seconds thereafter (I expect that to be a very simple change)
- the first few polls are done at 0.5 and 1 second intervals, after which it reverts to 5 seconds
Some sort of COMET / long-poll / server-sent event would clearly be a better solution, so that the result is returned as soon as it's available, but that would more work to implement.
Use case
When scripts are being used to automate data entry tasks, a 5 second delay on every form submission is long enough to become annoying quickly.
Database changes
None
External dependencies
None
bitcollector1
Metadata
Metadata
Assignees
Labels
status: acceptedThis issue has been accepted for implementationThis issue has been accepted for implementationtype: featureIntroduction of new functionality to the applicationIntroduction of new functionality to the application
