8000 Docs: workers = 1 when WEB_CONCURRENCY is not set · Issue #940 · encode/uvicorn · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Docs: workers = 1 when WEB_CONCURRENCY is not set #940
Closed
@pawamoy

Description

@pawamoy

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

self.workers = workers or 1

...to confirm that when WEB_CONCURRENCY is not defined, and workers 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)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsImprove documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0