django-celery icon indicating copy to clipboard operation
django-celery copied to clipboard

Stale tasks are not removed from the djcelery_periodictask table

Open claymation opened this issue 14 years ago • 4 comments

When using djcelery.schedulers.DatabaseScheduler:

  1. Define a periodic task
  2. Run celerybeat
  3. Observe task added to djcelery_periodictask table
  4. Rename the periodic task
  5. 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.

claymation avatar Jun 15 '11 02:06 claymation

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.

ask avatar Jul 15 '11 12:07 ask

I am currently experience the same problem on django-celery==3.2.1. Was this fixed or it's a known issue?

saifrim avatar Nov 01 '19 13:11 saifrim

can you try https://github.com/celery/django-celery/releases/tag/3.3.1

auvipy avatar Nov 01 '19 19:11 auvipy

I tried 3.3.1 and the problem still persists.

saifrim avatar Nov 04 '19 10:11 saifrim