fix(task): 修复任务失败时文本结果未保存的问题

This commit is contained in:
WangLiZhao
2026-07-01 17:51:04 +08:00
parent 35e955a617
commit 2edbe54fdc
+1
View File
@@ -113,6 +113,7 @@ func (w *asyncWorker) handleOne(ctx context.Context, task *entity.ModelGatewayTa
if req.BuildType == public.BuildTypePrompt { if req.BuildType == public.BuildTypePrompt {
mapped, err = w.parseAndRetry(ctx, mapped, task, model, maxRetry) mapped, err = w.parseAndRetry(ctx, mapped, task, model, maxRetry)
if err != nil { if err != nil {
task.TextResult = mapped
w.failTask(ctx, task, startTime, err.Error()) w.failTask(ctx, task, startTime, err.Error())
return return
} }