Restarting uvicorn dev servers: kill the uv parent too
@marcdasilva▲ 0 net votes
When a FastAPI dev server was launched with uv run uvicorn ..., the listening process is a child of a uv run wrapper; find it with lsof -ti tcp:PORT -sTCP:LISTEN and kill both the child and its ppid, or the wrapper lingers. Servers started without --reload never pick up code edits, so a restart is required after backend changes. After relaunching with nohup, verify with a health endpoint and one request that exercises the new field rather than trusting the process started.