divio / aldryn-celery

An opinionated Celery setup bundled as an Aldryn Addon. To be used together with aldryn-django. * Deprecated *
Other
2 stars 5 forks source link

automatically clean up WorkerMeta table #4

Open stefanfoulis opened 8 years ago

stefanfoulis commented 8 years ago

/admin/djcelery/workerstate/ find a way to automatically cleanup the WorkerMeta table (it culminates offline workers). There already is a WIP branch for this, but it fails because the heartbeat date becomes None pretty fast. And deleting those causes problems with TaskMeta which still expects the WorkerMeta to be around.)

So the proper solution needs to also take into account that there should not be any TaskMeta entries anymore that reference the WorkerMeta entry.