Scripts/Reports live data feed and cancel button #5517

Closed
opened 2025-12-29 19:28:54 +01:00 by adam · 6 comments
Owner

Originally created by @PieterL75 on GitHub (Oct 15, 2021).

NetBox version

v3.0.5

Feature type

Change to existing functionality

Proposed functionality

When running a CustomScript or Report, we get a waiting page that only shows that the script is running.

It would be nice to have a more 'live' view of the output of the script/report.
Whenever a self.log is done, it could be displayed immediately.
Also a 'cancel' button would be a nice addition.

Use case

First of all a better user experience when running reports that take some time to complete
(I have some reports that run +5min,due to external data being retrieved).

When creating reports/scripts that take a long time to run, the cancel button will help us to stop the engine of running the report and clear the queue.

Database changes

No response

External dependencies

No response

Originally created by @PieterL75 on GitHub (Oct 15, 2021). ### NetBox version v3.0.5 ### Feature type Change to existing functionality ### Proposed functionality When running a CustomScript or Report, we get a waiting page that only shows that the script is running. It would be nice to have a more 'live' view of the output of the script/report. Whenever a self.log is done, it could be displayed immediately. Also a 'cancel' button would be a nice addition. ### Use case First of all a better user experience when running reports that take some time to complete (I have some reports that run +5min,due to external data being retrieved). When creating reports/scripts that take a long time to run, the cancel button will help us to stop the engine of running the report and clear the queue. ### Database changes _No response_ ### External dependencies _No response_
adam added the type: featurepending closure labels 2025-12-29 19:28:54 +01:00
adam closed this issue 2025-12-29 19:28:54 +01:00
Author
Owner

@DanSheps commented on GitHub (Oct 19, 2021):

Just to give you a little more information, this would require a database update for each log(). It might not be feasible unless we pull it from somewhere else.

@DanSheps commented on GitHub (Oct 19, 2021): Just to give you a little more information, this would require a database update for each log(). It might not be feasible unless we pull it from somewhere else.
Author
Owner

@jeremystretch commented on GitHub (Nov 11, 2021):

This sounds like a substantial amount of work for relatively little return. @PieterL75 are you interested in owning this?

@jeremystretch commented on GitHub (Nov 11, 2021): This sounds like a substantial amount of work for relatively little return. @PieterL75 are you interested in owning this?
Author
Owner

@PieterL75 commented on GitHub (Nov 12, 2021):

I'm afraid that my coding skills and knowledge of django are not sufficient to be able to accomplish this. I might give it a shot of course, bit pretty sure you'll have a good laugh 😂
I'm more of a script writer and network implementor.
I hope someone else can take this.

Peter

@PieterL75 commented on GitHub (Nov 12, 2021): I'm afraid that my coding skills and knowledge of django are not sufficient to be able to accomplish this. I might give it a shot of course, bit pretty sure you'll have a good laugh 😂 I'm more of a script writer and network implementor. I hope someone else can take this. Peter
Author
Owner

@github-actions[bot] commented on GitHub (Jan 12, 2022):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. Please see our contributing guide.

@github-actions[bot] commented on GitHub (Jan 12, 2022): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. Please see our [contributing guide](https://github.com/netbox-community/netbox/blob/develop/CONTRIBUTING.md).
Author
Owner

@PieterL75 commented on GitHub (Jan 12, 2022):

Maybe some advise in how to debug Netbox scripts ?
My vscode can't handle it, so I have to rely on 'print' during the execution of the script...
step-by-step debugging would be great

Pieter

@PieterL75 commented on GitHub (Jan 12, 2022): Maybe some advise in how to debug Netbox scripts ? My vscode can't handle it, so I have to rely on 'print' during the execution of the script... step-by-step debugging would be great Pieter
Author
Owner

@jeremystretch commented on GitHub (Feb 18, 2022):

Closing for inactivity

@jeremystretch commented on GitHub (Feb 18, 2022): Closing for inactivity
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#5517