Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

worker.py in ./api #12

Open
Hit2theMo opened this issue Sep 25, 2021 · 1 comment
Open

worker.py in ./api #12

Hit2theMo opened this issue Sep 25, 2021 · 1 comment

Comments

@Hit2theMo
Copy link

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?

@araujofrancisco
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants