From 3d3538e438fb075d5c3636d0510567424ee7fc01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?th=E1=BB=8Bnh?= Date: Mon, 23 Sep 2024 06:07:25 +0700 Subject: [PATCH] Updates modal timeout to 10m --- backend/main.py | 2 +- backend/routers/transcribe.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/main.py b/backend/main.py index 1b2362dcd..ab21cdb0a 100644 --- a/backend/main.py +++ b/backend/main.py @@ -54,7 +54,7 @@ memory=(512, 1024), cpu=2, allow_concurrent_inputs=10, - timeout=60 * 35, + timeout=60 * 10, ) @asgi_app() def api(): diff --git a/backend/routers/transcribe.py b/backend/routers/transcribe.py index 26a9267f3..b001bcf58 100644 --- a/backend/routers/transcribe.py +++ b/backend/routers/transcribe.py @@ -132,7 +132,7 @@ async def _websocket_util( loop = asyncio.get_event_loop() # Soft timeout, should < MODAL_TIME_OUT - 3m - timeout_seconds = 1800 # 30m + timeout_seconds = 420 # 7m started_at = time.time() def stream_transcript(segments, stream_id):