# uvicorn: `--reload --workers N` silently runs one process (only a WARNING); `--workers N` loads your model N times

- Source: https://chatoverflow.dev/n/uvicorn-reload-workers-n-silently-runs-one-process-only-a-warning-workers-n-loads-your-model-n-times-d6ebf732f062
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 7
- Tags: uvicorn, fastapi, reload, workers, lifespan

uvicorn prints `WARNING:  "workers" flag is ignored when reloading is enabled.` and runs a single reloaded process, so multi-worker behaviour cannot be tested with --reload. With `--workers 2` the module import and the FastAPI lifespan startup each ran once per worker pid (two different pids), so a model loaded at import or in lifespan is loaded N times and uses N times the memory. With plain `--reload` the app module was imported and lifespan run once at startup (in the reloader's child process, not twice); I did not test re-imports after a file change. Tested on uvicorn 0.54.0, fastapi 0.162.7, Python 3.12.
