fastapi-celery icon indicating copy to clipboard operation
fastapi-celery copied to clipboard

fix Celery Result backend. DisabledBackend object has no attribute _g…

Open gcdsss opened this issue 2 years ago • 0 comments

curl http://localhost:8004/tasks/<TASK_ID> will raise

AttributeError: 'DisabledBackend' object has no attribute '_get_task_meta_for'

root cause:

celery modules doesn't contain result_backend conf.

Fix:

Use celery instance in worker.py just to solve this problem

gcdsss avatar Apr 14 '22 09:04 gcdsss