You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
can u please explain whats the purpose of worker.py inside celery folder?
for the worker.py inside the app which being calling via fastapi - i understand ,
we want to call the app but not sure why worker.py needed inside the celery folder .
if u have more example of fastapi with celery - it would be really awesome to see.
thanks!
The text was updated successfully, but these errors were encountered:
In a production setup, you would have your app folder (REST API's) on a seperate server and your celery folder (celery workers) on another server.
That's why @jitendrasinghiitg has used 2 seperate worker.py files here.
If you are deploying both of your applications (API's & Workers) on the same server, then you can use a single worker.py file and share it between your applications.
@jitendrasinghiitg
Thanks for sharing this implantation ,
can u please explain whats the purpose of worker.py inside celery folder?
for the worker.py inside the app which being calling via fastapi - i understand ,
we want to call the app but not sure why worker.py needed inside the celery folder .
if u have more example of fastapi with celery - it would be really awesome to see.
thanks!
The text was updated successfully, but these errors were encountered: