fix: 增加模型调用重试等待时间

This commit is contained in:
2026-06-25 11:57:57 +08:00
parent 63092be679
commit 3feb912d86
+1 -1
View File
@@ -49,7 +49,7 @@ func (w *asyncWorker) handleOne(ctx context.Context, task *entity.ModelGatewayTa
for attempt := 0; ; attempt++ {
if attempt > 0 {
g.Log().Infof(ctx, "[handleOne] 调模型重试 第%d次 taskId=%s", attempt, task.TaskID)
time.Sleep(time.Duration(attempt) * time.Second)
time.Sleep(time.Duration(attempt) * 5 * time.Second)
}
switch {