docker-flask-celery-redis icon indicating copy to clipboard operation
docker-flask-celery-redis copied to clipboard

worker.py in ./api

Open Hit2theMo opened this issue 4 years ago • 1 comments

What is the use of the worker.py file inside ./api? Since we are already having a separate container running as a celery worker? Is this file obsolete?

Hit2theMo avatar Sep 25 '21 22:09 Hit2theMo

It is use to obtain a celery object for tasks, since it imports celery from worker:

celery = Celery('tasks', broker=CELERY_BROKER_URL, backend=CELERY_RESULT_BACKEND)

araujofrancisco avatar Jul 12 '23 14:07 araujofrancisco