From b1f824b06d57cbf477fff7e303ed9339b9c46f49 Mon Sep 17 00:00:00 2001 From: fish Date: Mon, 4 May 2026 23:29:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=B9=E9=87=8F=E6=89=93=E5=88=86=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E8=B6=85=E6=97=B6=E6=97=B6=E9=97=B4=E4=BB=8E15s?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=88=B0180s=EF=BC=8C=E9=81=BF=E5=85=8D6?= =?UTF-8?q?=E5=93=81=E7=A7=8D=E5=90=8C=E6=AD=A5=E6=97=B6=E8=B6=85=E6=97=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.7 --- web/backend/internal/handlers/run.go | 2 +- web/frontend/src/api/run.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web/backend/internal/handlers/run.go b/web/backend/internal/handlers/run.go index 78861ff..72c3685 100644 --- a/web/backend/internal/handlers/run.go +++ b/web/backend/internal/handlers/run.go @@ -43,7 +43,7 @@ func (d *Deps) RunPipeline(w http.ResponseWriter, r *http.Request) { } func (d *Deps) RunBatch(w http.ResponseWriter, r *http.Request) { - client := &http.Client{Timeout: 120 * time.Second} + client := &http.Client{Timeout: 180 * time.Second} resp, err := client.Post(d.TushareURL+"/api/v1/run/batch", "application/json", nil) if err != nil { writeErr(w, http.StatusBadGateway, fmt.Sprintf("tushare service unavailable: %v", err)) diff --git a/web/frontend/src/api/run.ts b/web/frontend/src/api/run.ts index 26774f2..23797e1 100644 --- a/web/frontend/src/api/run.ts +++ b/web/frontend/src/api/run.ts @@ -31,7 +31,7 @@ export function runPipeline(req: RunRequest) { } export function runBatch() { - return client.post('/run/batch').then((r) => r.data) + return client.post('/run/batch', null, { timeout: 180_000 }).then((r) => r.data) } export function getActiveContract(symbol: string) {