Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何使用 django 在 djcelery 中启动工作人员。我是 django 和 djcelery 的新手。我安装了 django 和 djcelery。但我不知道如何启动工作人员以及如何添加工作人员和任务。抱歉我的英语不好
您通常使用以下命令启动 celery worker:
$ celery -A project worker -l info
其中 -A 是您的应用程序/项目。
由于您使用的是 djcelery,因此您也可以使用 manage.py 运行它:
$ python manage.py celery worker
阅读celery 文档