From 892a5f9127620983e6527b1cf803c080286e4ba9 Mon Sep 17 00:00:00 2001 From: npc0-hue Date: Wed, 18 Mar 2026 11:30:11 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=89=B9=E5=A4=84=E7=90=86=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E8=B6=85=E6=97=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/server/service/gaia/batch_workflow.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/server/service/gaia/batch_workflow.go b/admin/server/service/gaia/batch_workflow.go index 112297f5d..96688c7ab 100644 --- a/admin/server/service/gaia/batch_workflow.go +++ b/admin/server/service/gaia/batch_workflow.go @@ -363,8 +363,8 @@ func (s *BatchWorkflowService) callDifyAPI( } // Extend End: 添加CSRF token支持 - // 发送请求 - client := &http.Client{} + // 发送请求(设置超时,避免 Dify 卡住时 goroutine 与连接长期占用不释放) + client := &http.Client{Timeout: 5 * time.Minute} resp, err := client.Do(req) if err != nil { return "", err