Skip to content

Winloop is not work in uvicorn multiprocessing #11

Closed
@yangy996

Description

@yangy996

In uvicorn, I have added a new file “winloop.py”.
image
uvicorn/config.py:
image

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:
image
Pid is 23052 and 4604.

Just,It is only running on PID 4604.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingquestionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions