Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve job-cmd output refreshing #5

Open
uakfdotb opened this issue Aug 22, 2020 · 0 comments
Open

Improve job-cmd output refreshing #5

uakfdotb opened this issue Aug 22, 2020 · 0 comments

Comments

@uakfdotb
Copy link
Contributor

Currently if job command has a lot of output, since the front-end interface will keep refreshing the whole output every 5 seconds, it will cause browser to be slow or at least eat up lots of bandwidth.

  1. Update the refresh interval to be 5 seconds between each function call instead of every 5 seconds. This should be done for most of our other setInterval calls too.
  2. After initial load of the output, only fetch new lines. Or the last few lines. Maybe initial load should also be limited to e.g. 1000 lines. We don't want to store so many lines in the database anyway.
uakfdotb added a commit that referenced this issue Aug 24, 2020
this prevents sending too much data at once. partially addresses #5
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

No branches or pull requests

1 participant