From d0c2d60cc5a2331d6ba191b99e970faa9146e079 Mon Sep 17 00:00:00 2001 From: puke <1129090915@qq.com> Date: Wed, 12 Nov 2025 21:46:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=B5=84=E6=BA=90=E4=B8=8B?= =?UTF-8?q?=E8=BD=BD=E7=9A=84=E8=B6=85=E6=97=B6=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pixelle_video/services/frame_processor.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pixelle_video/services/frame_processor.py b/pixelle_video/services/frame_processor.py index 4767663..1e5cc71 100644 --- a/pixelle_video/services/frame_processor.py +++ b/pixelle_video/services/frame_processor.py @@ -393,7 +393,8 @@ class FrameProcessor: from pixelle_video.utils.os_util import get_task_frame_path output_path = get_task_frame_path(task_id, frame_index, media_type) - async with httpx.AsyncClient() as client: + timeout = httpx.Timeout(connect=10.0, read=60, write=60, pool=60) + async with httpx.AsyncClient(timeout=timeout) as client: response = await client.get(url) response.raise_for_status()