From b93f233437183f0dccca6164b70c488c0376227d Mon Sep 17 00:00:00 2001 From: technillogue Date: Tue, 2 Jul 2024 17:48:09 -0400 Subject: [PATCH] Revert "should_exit is not actually used by http". It was being used by uvicorn and I hadn't noticed This reverts commit 3ca8aec38bacf4fdb34650a4376eb3ea725a53a6. --- python/cog/server/http.py | 1 + 1 file changed, 1 insertion(+) diff --git a/python/cog/server/http.py b/python/cog/server/http.py index 9ffd4fd3b8..504a0ec396 100644 --- a/python/cog/server/http.py +++ b/python/cog/server/http.py @@ -415,6 +415,7 @@ def start(self) -> None: def stop(self) -> None: log.info("stopping server") + self.should_exit = True self._thread.join(timeout=5) if not self._thread.is_alive():