Uvicorn stays alive when all workers are dead. Is this intended behaviour? Could someone explain the benefit of this? Uvicorn does not seem to restart individual workers if they are dead. Therefore, shouldn't Uvicorn itself exit when there are zero workers left? A container orchestrator could automatically reload Uvicorn on exit, which would be awesome. <!-- POLAR PLEDGE BADGE START --> > [!IMPORTANT] > - We're using [Polar.sh](https://polar.sh/encode) so you can upvote and help fund this issue. > - We receive the funding once the issue is completed & confirmed by you. > - Thank you in advance for helping prioritize & fund our backlog. <a href="https://polar.sh/encode/uvicorn/issues/517"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://polar.sh/api/github/encode/uvicorn/issues/517/pledge.svg?darkmode=1"> <img alt="Fund with Polar" src="https://polar.sh/api/github/encode/uvicorn/issues/517/pledge.svg"> </picture> </a> <!-- POLAR PLEDGE BADGE END -->
Uvicorn stays alive when all workers are dead. Is this intended behaviour? Could someone explain the benefit of this?
Uvicorn does not seem to restart individual workers if they are dead. Therefore, shouldn't Uvicorn itself exit when there are zero workers left?
A container orchestrator could automatically reload Uvicorn on exit, which would be awesome.
Important