-
Notifications
You must be signed in to change notification settings - Fork 11
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
Winloop is not work in uvicorn multiprocessing #11
Comments
@yangy996 There is still some work to be done around multiprocessing including |
The current version is 0.1.0. |
I was able to get it to spawn in 2 pids using a test via the aiomultiprocess library I will try to extend this into uvicorn very soon. |
I'm closing this issue because we solved this one a long time ago. |
In uvicorn, I have added a new file “winloop.py”.
uvicorn/config.py:
Next:
from uvicorn import run
run("app_compat:create_app_fastapi", host="0.0.0.0",
workers=int(args["workers"]),
port=int(port),
loop="winloop",
factory=True)
Result:
Pid is 23052 and 4604.
Just,It is only running on PID 4604.
The text was updated successfully, but these errors were encountered: