Code executing in only one worker #3137
Unanswered
ArijitSinghEDA
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am spawning 4 workers in a docker with pids 1, 2, 3, 4 using gunicorn and FastAPI with uvicorn workers.
When a process is running on worker 3, it gets executed completely, but when it runs on any other worker, it stops executing mid way.
Structure of my file data:
main.py
gunicorn_config.py
running_file.py
Now, if this code runs on worker 3, I get output on the kernel
But, if it is running on any other worker, I get the output
What can be the reason for such behaviour? It wasn't happening before, it just started out of the blue.
Beta Was this translation helpful? Give feedback.
All reactions