Skip to content

Tweak content queue polling to prevent overloading the server #13500

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

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

rtibbles
Copy link
Member

Summary

  • Use useTimeoutPoll instead of useIntervalFn to wait for completion before repolling.
  • Return promise to defer, increase interval to reduce server load.

References

Fixes #13412

Reviewer guidance

I reduced this in scope to more directly address the issue, as I think using the task polling composable more generally would require a very large refactor of the Vuex state.

To test this, I added a time.sleep to the tasks/api.py list method, and these updates ensured that while the request was still pending a new request was not initiated.

…fore repolling.

Return promise to defer, increase interval to reduce server load.
@github-actions github-actions bot added APP: Device Re: Device App (content import/export, facility-syncing, user permissions, etc.) DEV: frontend SIZE: very small labels Jun 19, 2025
@marcellamaki marcellamaki self-assigned this Jun 24, 2025
@marcellamaki marcellamaki self-requested a review June 24, 2025 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
APP: Device Re: Device App (content import/export, facility-syncing, user permissions, etc.) DEV: frontend SIZE: very small
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tweak content queue polling in the device page
2 participants