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

Allow (un)block_room storage functions to be called on workers #18119

Merged
merged 3 commits into from
Jan 30, 2025

Conversation

anoadragon453
Copy link
Member

@anoadragon453 anoadragon453 commented Jan 30, 2025

This is so workers can call these functions.

This was preventing the Delete Room Admin API from succeeding when block: true was specified. This was because we had run_background_tasks_on configured to run on a separate worker.

As workers weren't able to call the block_room storage function before this PR, the (delete room) task failed when taken off the queue by the worker.

@anoadragon453 anoadragon453 changed the title Move (un)block_room storage function to RoomWorkerStore Allow (un)block_room storage functions to be called on workers Jan 30, 2025
@anoadragon453 anoadragon453 marked this pull request as ready for review January 30, 2025 18:22
@anoadragon453 anoadragon453 requested a review from a team as a code owner January 30, 2025 18:22
Copy link
Member

@devonh devonh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This has been deployed to matrix.org without issue.
And it passes all CI tests.

It should be safe to make this change.

@devonh devonh merged commit ac1bf68 into develop Jan 30, 2025
39 checks passed
@devonh devonh deleted the anoa/fix_deleting_rooms branch January 30, 2025 20:48
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