From fabb11090d73bebf06e23f5942e9d0b7505d23cc Mon Sep 17 00:00:00 2001 From: liwei9745 <36831896+liwei9745@users.noreply.github.com> Date: Mon, 9 Nov 2026 10:53:31 +0800 Subject: [PATCH] =?UTF-8?q?fix(flow):=20=E6=94=BE=E5=AE=BD=E6=8E=A7?= =?UTF-8?q?=E5=88=B6=E9=9D=A2=E8=AF=B7=E6=B1=82=E8=B6=85=E6=97=B6=E4=B8=8A?= =?UTF-8?q?=E9=99=90=E8=87=B3=2030=20=E7=A7=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit _get_control_plane_timeout() 把控制面请求(ST→AT、项目创建/查询、媒体信息等) 的超时上限固定在 10 秒,对经代理访问 Flow 的链路偏紧,网络抖动时容易在 生成前置阶段直接失败。 放宽到 30 秒,仍受 config.flow_timeout 与下限 5 秒约束,不会无限等待。 --- src/services/flow_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/flow_client.py b/src/services/flow_client.py index e65a1917..3eb39579 100644 --- a/src/services/flow_client.py +++ b/src/services/flow_client.py @@ -1105,7 +1105,7 @@ def _is_retryable_network_error(self, error_str: str) -> bool: def _get_control_plane_timeout(self) -> int: """控制轻量控制面请求的超时,避免认证/项目接口长时间挂起。""" - return max(5, min(int(self.timeout or 0) or 120, 10)) + return max(5, min(int(self.timeout or 0) or 120, 30)) def _get_video_submit_timeout(self) -> int: """视频提交接口应快速返回 operation,避免单次网络挂死拖满整条链路。"""