django-celery
django-celery copied to clipboard
Stale tasks are not removed from the djcelery_periodictask table
When using djcelery.schedulers.DatabaseScheduler:
- Define a periodic task
- Run celerybeat
- Observe task added to djcelery_periodictask table
- Rename the periodic task
- Observe new task added to djcelery_periodictask table, but old task not removed
This also happens when removing periodic tasks—the database entries persist after the tasks no longer exist in code.
Interesting, I imagine we have to add another field marking it as "merged from defined tasks", and then check those to verify that the defined tasks still exists.
I am currently experience the same problem on django-celery==3.2.1.
Was this fixed or it's a known issue?
can you try https://github.com/celery/django-celery/releases/tag/3.3.1
I tried 3.3.1 and the problem still persists.