celery task clean-up with DB backend

杀马特。学长 韩版系。学妹 提交于 2019-12-03 12:44:14
asksol

If you click on the link to the setting doc for CELERY_TASK_RESULT_EXPIRES:

http://docs.celeryproject.org/en/latest/userguide/configuration.html#result-expires

It does say that database supports this, but then you need to run celery beat (there's a default periodic task, called every day, to remove expired results).

The backend docs in the task should probably mention this as well, maybe there should be a dedicated guide for backends too. If you want to lobby for this, then please open up an issue at https://github.com/celery/celery/issues

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!