Uvicorn in Windows kills subprocesses on reload #2292
Unanswered
sid-38
asked this question in
Potential Issue
Replies: 2 comments 1 reply
-
I believe, the reason for this could be that on reload, uvicorn does a os.kill(pid, signal.CTRL_C_EVENT) and if the pid is that of an individual process instead of a process group it leads to the CTRL+C signal being sent to everything under the terminal. It's a bug that's been reported in the following links: |
Beta Was this translation helpful? Give feedback.
0 replies
-
Does this happen with uvicorn 0.28.0? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Uvicorn server with reload=True, would send a Ctrl+C event to other subprocesses when reloading.
On making changes to the uvicorn_main.py file, uvicorn reloads and the frontend loop ends.
Uvicorn version - 0.29.0
Watchfiles version - 0.21.0
Python version - 3.12.2
OS - Windows 11 Home
Beta Was this translation helpful? Give feedback.
All reactions