-
-
Notifications
You must be signed in to change notification settings - Fork 758
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
Docs: workers = 1 when WEB_CONCURRENCY is not set #940
Comments
sure why not, I edited your title to put 2 Rs though, easier to find |
Thanks!
Oh yes, I used "thread-safe" because I'm not sure there's a "process-safe" term? 😅 OK I'll try to send a PR soon 🙂 |
seems like there is :_)
Queues are thread and process safe.
in https://docs.python.org/3/library/multiprocessing.html#exchanging-objects-between-processes
…On Thu, Jan 21, 2021 at 3:06 PM Timothée Mazzucotelli ***@***.***> wrote:
Thanks!
workers set the number of processes not threads, just to be clear
Oh yes, I used "thread-safe" because I'm not sure there's a "process-safe" term?
OK I'll try to send a PR soon
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
--
benoit barthelet
http://pgp.mit.edu/pks/lookup?op=get&search=0xF150E01A72F6D2EE
|
Hello, thanks for this great ASGI server 🙂
I have an application that must use only one worker (it's not thread-safe), and so I wanted to confirm that, by default, uvicorn only uses one worker. But I had to read the source code
uvicorn/uvicorn/config.py
Line 177 in afb2d56
...to confirm that when
WEB_CONCURRENCY
is not defined, andworkers
is not specified, 1 is used.Would you accept a PR adding that information to the docs (there are 4-5 places where this can be added)?
The text was updated successfully, but these errors were encountered: