How to cleanup celery_taskmeta?

celery, django-celery, task

Solution

I have a cronjob running a Django command that executes this SQL statement:

"truncate table celery_taskmeta"

deleted 50.000 records in 0.47ms.

Problem

I've been reading django-celery to try to find a native way of cleaning up celery_taskmeta, so this table won't grow up too much when in production environment. Can'f find nothing. Should i do a command to deal with this?

Original source