From b3d8f0113bfe2848e912ff7f841a973a9422b129 Mon Sep 17 00:00:00 2001
From: sanj <67624670+iodrift@users.noreply.github.com>
Date: Fri, 2 Aug 2024 00:50:57 -0700
Subject: [PATCH] Auto-update: Fri Aug  2 00:50:57 PDT 2024

---
 sijapi/__main__.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/sijapi/__main__.py b/sijapi/__main__.py
index 8040595..5d70c40 100755
--- a/sijapi/__main__.py
+++ b/sijapi/__main__.py
@@ -63,7 +63,7 @@ async def lifespan(app: FastAPI):
 
     try:
         yield  # This is where the app runs
-        
+
     finally:
         # Shutdown
         crit("Shutting down...")
@@ -184,7 +184,8 @@ def load_router(router_name):
 def main(argv):
     config = HypercornConfig()
     config.bind = [API.BIND]
-    config.startup_timeout = 3600  # 1 hour
+    config.startup_timeout = 300 # 5 minutes
+    config.shutdown_timeout = 15 # 15 seconds
     asyncio.run(serve(app, config))
 
 if __name__ == "__main__":