Reload will cause some parallel mechanism broken on Windows #2804
Unanswered
BHznJNs
asked this question in
Potential Issue
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When running uvicorn with the --reload flag inside a parallel job runner like concurrently on Windows, the entire parallel session terminates whenever a reload is triggered. I tried both the uvicorn command (
uvicorn src.main:app --reload) and programatically way (import uvicorn; uvicorn.run("src.main:app", reload=True))My environment:
The parallel job runner I tried:
--parallel)I also tried watchdog with such a command without changing my codes:
It works (excepts I need to manually kill the previous process after reloading).
Beta Was this translation helpful? Give feedback.
All reactions