Making sure fastAPI is shutdown gracefully when getting a SIGTERM signal I have a FastAPI app running in Kubernetes. I’m trying to accomplish the following: