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

Sync workers: use data type enum instead of specific authority #1177

Merged
merged 28 commits into from
Dec 26, 2024

Conversation

rfc2822
Copy link
Member

@rfc2822 rfc2822 commented Dec 17, 2024

Instead of using sync authorities to control the sync (sync intervals, workers, etc.), we now use the SyncDataType.

This decouples sync authorities (actual content providers) and the type of sync.So we also don't need to look up the tasks provider when we shouldn't have to.

Automatic sync is now controlled by the AutomaticSyncManager. Other code locations don't have to (and shouldn't) update the sync runners.

@rfc2822 rfc2822 self-assigned this Dec 17, 2024
@rfc2822 rfc2822 added the refactoring Internal improvement of existing functions label Dec 17, 2024
@rfc2822 rfc2822 marked this pull request as ready for review December 26, 2024 17:21
@rfc2822 rfc2822 merged commit f503ce5 into main-ose Dec 26, 2024
9 of 10 checks passed
@rfc2822 rfc2822 deleted the sync-domains-2 branch December 26, 2024 17:34
@rfc2822 rfc2822 linked an issue Dec 26, 2024 that may be closed by this pull request
@sunkup sunkup mentioned this pull request Jan 2, 2025
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactoring Internal improvement of existing functions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sync: use constants instead of authorities where applicable
1 participant