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

delete_expired method fails for large queryset. #430

Open
pyarun opened this issue May 16, 2024 · 0 comments
Open

delete_expired method fails for large queryset. #430

pyarun opened this issue May 16, 2024 · 0 comments

Comments

@pyarun
Copy link

pyarun commented May 16, 2024

We process and save results for around 1M task everyday. I see celery.backend_cleanup: 0 4 * * * (m/h/dM/MY/d) UTC in Periodic tasks and it runs everyday. but records are not deleted.

When i ran TaskResult.objects.delete_expired(24*3600) from django shell, shell was killed.

Should we refactor delete_expired to delete objects in chunks?

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

No branches or pull requests

1 participant