Skip to content

Update communities in parallel (TS-2378) #1128

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: master
Choose a base branch
from

Conversation

Roffenlund
Copy link
Contributor

  • Create a main celery task which delegates the cache update for each community to a child task.
  • Implement tests.
  • Implement migration.

@Roffenlund Roffenlund requested a review from MythicManiac April 1, 2025 15:20
@Roffenlund Roffenlund force-pushed the update-communities-in-parallel branch from f134202 to 90c30b0 Compare April 1, 2025 15:23
Refactor task for updating chunked community packages to update each
community in parallel. Introduce a new task which is spawned by the main
update task to fire on each community.

Remove function responsible for updating all community caches and
introduce a new function doing the same thing but for a single
community, taking the community as a parameter.

Update cache tests because the old cache update function was removed.

Add update_single_community_cache to celery tests.

Add a create_batch method to CommunityFactory to help with testing.

Add test for the newly updated celery task to assert that the child
tasks are indeed spawned per community.

Refs. TS-2378
@Roffenlund Roffenlund force-pushed the update-communities-in-parallel branch from 90c30b0 to baccb0e Compare April 2, 2025 12:25
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.

2 participants