Where is the data provided by django-celery urls stored? How long is the data available? And what is the memory consumption?

萝らか妹 提交于 2019-12-04 19:57:52
David Wolever

The results are stored in the CELERY_RESULT_BACKEND, which is disabled by default.

You can get the result of a task by creating a new celery.result.AsyncResult with the appropriate task_id: How do I get the result of a task if I have the ID that points there?.

Unless you set CELERY_AMQP_TASK_RESULT_EXPIRES, tasks will never expire. You can manually remove the result of a task using AsyncResult.forget().

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