Replies: 1 comment
-
I did an experiment running
I then sent SIGHUP signal to the
I.e. it first tore down the server processes 70529 and 70530, and then started server processes 70855 and 70856. So I guess this is not a graceful restart and that in between |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
First Check
Commit to Help
Example Code
Description
If I send a SIGHUP signal to the "fastapi run" process, will it result in a graceful restart?
With graceful I mean a restart where there's no risk of a request being "lost"? (e.g. like my reverse proxy responding with a 500 Internal Server Error).
I know that "fastapi run" internally uses uvicorn, and I know that the uvicorn docs at https://www.uvicorn.org/server-behavior/#graceful-process-shutdown says:
But I'm unsure if all the steps in this description applies to uvicorn itself, or only when combining it with gunicorn as a process manager, and, if the former, if it applies to "fastapi run".
Operating System
Linux
Operating System Details
Ubuntu 24.04.3 LTS
Python Version
3.12.3
Additional Context
I use fastapi-cli 0.0.12 and will use Caddy as reverse proxy for my app
Beta Was this translation helpful? Give feedback.
All reactions