From 14484c122dd5308ee5657095636f035e2dbd7ac6 Mon Sep 17 00:00:00 2001 From: Brendan Graham Date: Wed, 6 Sep 2023 04:59:49 +0000 Subject: [PATCH] UvicornWorker: respect the gunicorn graceful shutdown timeout --- uvicorn/workers.py | 1 + 1 file changed, 1 insertion(+) diff --git a/uvicorn/workers.py b/uvicorn/workers.py index 0d6b49bdc..e336000e2 100644 --- a/uvicorn/workers.py +++ b/uvicorn/workers.py @@ -40,6 +40,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: "callback_notify": self.callback_notify, "limit_max_requests": self.max_requests, "forwarded_allow_ips": self.cfg.forwarded_allow_ips, + "timeout_graceful_shutdown": self.cfg.graceful_timeout, } if self.cfg.is_ssl: