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

Example of how to handle background processes with FastAPI, Celery, and Docker

Results 4 fastapi-celery issues
Sort by recently updated
recently updated
newest added

Hey, Just wanted to give the heads-up that the J2 version needs to be updated. I'd submit a PR however I'm guessing you have a process for package management already....

`curl http://localhost:8004/tasks/` 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

I can see that the same file is used on the API side and by the worker - it's the 'worker.py' file. As I understand it, the @celery.task decorator provides...