From a16ea856674059fd1bfb5d67fde59be7d0c58967 Mon Sep 17 00:00:00 2001 From: sauyon <2347889+sauyon@users.noreply.github.com> Date: Mon, 7 Nov 2022 12:36:44 -0800 Subject: [PATCH] fix: set uvicorn keep-alive --- src/bentoml_cli/worker/runner.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bentoml_cli/worker/runner.py b/src/bentoml_cli/worker/runner.py index 8580c37587..b9a45e2324 100644 --- a/src/bentoml_cli/worker/runner.py +++ b/src/bentoml_cli/worker/runner.py @@ -127,6 +127,7 @@ def main( uvicorn_options: dict[str, int | None | str] = { "log_config": None, "workers": 1, + "timeout_keep_alive": 1800, } if psutil.WINDOWS: