-
I see there is a constraint in the code to enable auto-reload (reload=True) only when the app argument to uvicorn.run() is an app path string, but it doesn't work if that's an instance. The question why not allow to work reload when passing the app as an instance? In my use case, I don't want to initialize settings I pass to the app globally. Any workaround also work, txs.
|
Beta Was this translation helpful? Give feedback.
Answered by
Kludex
Oct 23, 2023
Replies: 1 comment 1 reply
-
Because we run another process on reload, so we pass the path of the app to be loaded on another process. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Kludex
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Because we run another process on reload, so we pass the path of the app to be loaded on another process.