-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RFC: Always run workers in a subprocess. #2364
Comments
I considered this in the Trio fork I worked on, and made If this causes trouble in multi-serve or other development, the main |
You make a good point. I think the core of what I was going after is the "gotcha" of a newcomer. This can easily be added with the new I am currently leaning towards He big change is really documentation then. |
I don't remember the exact state of CLI flags in 22.3, but it would probably then make sense to have |
That I think would cause more confusion. Currently:
For debug mode to then change one thing would be non-obvious. |
I am leaning more and more towards not spawning any workers unless using |
Okay, so I have put some more thoughts and effort into this. I think that we should perform the following:
|
All that sounds good. Any chance of having a pathway to fixing Windows (or MacOS) where forking is not possible? |
Yes, I think this is doable. I have had it working, but not done a full test yet to make sure it does not cause a regression somewhere else. |
Proposal: Always run workers in a subprocess.
Currently, when in
PRODUCTION
mode withworkers=1
, the server runs in the main process. This can lead to a discrepancy since the server(s) will be in a subprocess if:auto_reload
is enabledWe can create a more consistent experience if it will always be in a subprocess.
The text was updated successfully, but these errors were encountered: