CELERY_RESULT_EXPIRES does not prevent backend.cleanup task
kgeographer opened this issue · comments
Karl Grossner commented
I have been using django-celery-results v1.0.2 in an app for a few years successfully. No tasks are ever deleted automatically, and that is essential to my application - result attributes are used in various ways permanently. Occasionally I will clear out some mundane tasks, but certain ones are crucial, and not a huge number.
Now upgrading and updating, to Django 4 from 2, and django-celery-results to 2.5.0, I find that all tasks are wiped daily. I understand this is standard behavior, and that a CELERY_RESULT_EXPIRES = None
line in settings.py should prevent the cleanup task from running, but it hasn't.
How can I stop the cleanup?