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

Reduce number of resource jobs during periodic auto-refresh of spaces #12060

Merged
merged 4 commits into from
Feb 18, 2025

Conversation

modSpike
Copy link
Contributor

essentially this commit drastically reduces image updates and associated ResourceJob creation by checking the etag of the image and only fetching the resource if the tag has changed.

same principle is applied to the space itself. Space's drive is "updated" automatically every 30 seconds using a polling strategy, so it's common that nothing has actually changed. New behavior: if the space etag has not changed there should be nothing to update, so skip it.

essentially this commit drastically reduces image updates and associated ResourceJob creation by checking the etag of the image and only fetching the resource if the tag has changed.

same principle is applied to the space itself. Space's drive is "updated" automatically every 30 seconds using a polling strategy, so it's common that nothing has actually changed. New behavior: if the space etag has not changed there should be nothing to update, so skip it.
Copy link

update-docs bot commented Feb 12, 2025

Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes.

@CLAassistant
Copy link

CLAassistant commented Feb 12, 2025

CLA assistant check
All committers have signed the CLA.

@modSpike modSpike marked this pull request as draft February 12, 2025 14:10
@modSpike modSpike marked this pull request as ready for review February 18, 2025 09:42
@modSpike modSpike changed the title partial Fixes #12057 Reduce number of resource jobs during periodic auto-refresh of spaces Feb 18, 2025
@modSpike modSpike merged commit abfe443 into master Feb 18, 2025
4 checks passed
@modSpike modSpike deleted the work/reduce_SpaceImage_Network_Jobs branch February 18, 2025 13:37
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.

4 participants