我想使用Django的芹菜在我的項目Django的芹菜:沒有結果後端配置
在settings.py我
CELERY_RESULT_BACKEND = "amqp"
服務器用
python manage.py celeryd --setting=settings
開始罰款
但是,如果我想訪問延遲任務的結果,會出現以下錯誤:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python27\lib\site-packages\celery\result.py", line 108, in ready
return self.status in self.backend.READY_STATES
File "C:\Python27\lib\site-packages\celery\result.py", line 196, in status
return self.state
File "C:\Python27\lib\site-packages\celery\result.py", line 191, in state
return self.backend.get_status(self.task_id)
File "C:\Python27\lib\site-packages\celery\backends\base.py", line 404, in _is
_disabled
raise NotImplementedError("No result backend configured. "
NotImplementedError: No result backend configured. Please see the documentation
for more information.
這很奇怪,因爲當我剛剛運行芹菜(具有相同的芹菜設置)時,它工作得很好。有沒有人遇到過這個問題?
在此先感謝!