Skip to content

Add option to change refresh-interval#136

Open
harmenwassenaar wants to merge 2 commits intomasterfrom
add-option-on-dashboard-to-change-refresh-interval
Open

Add option to change refresh-interval#136
harmenwassenaar wants to merge 2 commits intomasterfrom
add-option-on-dashboard-to-change-refresh-interval

Conversation

@harmenwassenaar
Copy link
Collaborator

@harmenwassenaar harmenwassenaar commented Jul 4, 2024

If you use a long-running dashboard, and especially if you have a few stack-traces, the bandwidth consumption can get pretty high, so it would be nice to be able to reduce the refresh rate.

Other options to tackle the issue would be to only request updates for progress-bars that haven't completed/stopped, and perhaps using websockets.

@harmenwassenaar harmenwassenaar force-pushed the add-option-on-dashboard-to-change-refresh-interval branch from 48e856a to 3c18420 Compare July 4, 2024 14:47
var completed_pb_ids = {};
refresh();
setInterval(refresh, refresh_interval);
var interval_id = setInterval(refresh, refresh_interval);
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For some reason calling refresh() before setting the interval causes finished progress-bars not to show up with the latest commit (neither in firefox nor chrome). But leaving it out causes a half second delay.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant