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

Limit Celery Beat event updates on bulk trash-bin actions #5207

Open
wants to merge 2 commits into
base: release/2.024.33
Choose a base branch
from

Conversation

noliveleger
Copy link
Contributor

Description

This PR restricts the number of Celery Beat event updates triggered during bulk actions within the trash bin. By reducing the frequency of updates, we prevent the stacking of multiple updates that can create a domino effect, leading to a bottleneck.

This allows projects to be deleted without delays and helps to prevent 504-Timeout errors.

Notes

Use a context manager to disconnect and reconnect Celery Beat signals on save and delete.
Only update Celery Beat event scheduler if it has not been updated for the last 5 minutes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants