django-celery-results
django-celery-results copied to clipboard
delete_expired method fails for large queryset.
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?