1
沒有結果後端,我該如何等待Celery任務完成?當沒有使用後端結果時,.collect()
and .get()
都會失敗。我不需要任務的結果,只需等待它完成即可。等待Celery任務完成而沒有結果後端
>>> add.delay(1, 2).get()
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "/usr/local/lib/python2.7/site-packages/celery/result.py", line 169, in get
no_ack=no_ack,
File "/usr/local/lib/python2.7/site-packages/celery/backends/base.py", line 616, in _is_disabled
'No result backend configured. '
NotImplementedError: No result backend configured. Please see the documentation for more information.