celery / django-celery

Old Celery integration project for Django
http://celery.github.com/django-celery
BSD 3-Clause "New" or "Revised" License
1.53k stars 453 forks source link

Stale tasks are not removed from the djcelery_periodictask table #54

Open claymation opened 13 years ago

claymation commented 13 years ago

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.

ask commented 13 years ago

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.

saifrim commented 5 years ago

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

auvipy commented 5 years ago

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

saifrim commented 5 years ago

I tried 3.3.1 and the problem still persists.