django - Cleanup taskmeta table of celery -
i have celery running , works nice.
celery uses default database table store task results, called celery_taskmeta
. table growing fast. read docs, did not find hint cleaning old entries.
is there task automatically scheduled celerybeat
, cleans table or have configure here?
[edit]
is related result backend settings? bit confusing, because documentation says, there no default value this. seems, database
default , uses the default
configuration of normal django database configuration.
you can manually clean table way:
from djcelery.models import taskmeta, states taskmeta.objects.filter(status=states.success).delete()
Comments
Post a Comment