modern-wolf-36228
10/12/2021, 11:18 AMuvicorn
shutdown behavior is the following:
• If you send SIGTERM
or SIGINT
, it will set a variable should_exit
to True, and it will start the graceful shutdown.
• If you send another SIGTERM
or SIGINT
, it will set a variable force_exit
to True, and it will force the exit.uvicorn
is receiving two signals, due to that it cannot shutdown gracefully 🤔curved-television-6568
10/12/2021, 11:34 AMmodern-wolf-36228
10/12/2021, 11:35 AMcurved-television-6568
10/12/2021, 11:52 AMwitty-crayon-22786
10/12/2021, 3:50 PMSIGKILL
modern-wolf-36228
10/12/2021, 4:08 PMSIGKILL
?witty-crayon-22786
10/12/2021, 4:10 PMmodern-wolf-36228
10/12/2021, 4:18 PMwitty-crayon-22786
10/12/2021, 4:18 PMmodern-wolf-36228
10/12/2021, 4:18 PMwitty-crayon-22786
10/12/2021, 4:19 PMuvicorn
being killed like this? does it fail to restart, or just fail to clean up files/processes it created?modern-wolf-36228
10/12/2021, 4:22 PMwitty-crayon-22786
10/12/2021, 4:24 PMmodern-wolf-36228
10/12/2021, 5:06 PM