Skip to content
Discussion options

You must be logged in to vote

From the docs of Uvicorn (https://uvicorn.dev/deployment/#running-from-the-command-line):

   --workers INTEGER               Number of worker processes. Defaults to the
                                  $WEB_CONCURRENCY environment variable if
                                  available, or 1. Not valid with --reload.

Since fastapi dev runs server with --reload option, specifying number of workers is not supported by Uvicorn

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by YuriiMotov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
2 participants