From ba7edd6f70bb7dec37ccf594b341dc42cb9b8e16 Mon Sep 17 00:00:00 2001 From: Lynwee <1507509064@qq.com> Date: Thu, 12 Dec 2024 10:48:36 +0800 Subject: [PATCH] fix(framework): fix errors when updating `is_failed` in PG (#8238) --- backend/core/runner/run_task.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/core/runner/run_task.go b/backend/core/runner/run_task.go index 84f322c7a8a..8148a89de84 100644 --- a/backend/core/runner/run_task.go +++ b/backend/core/runner/run_task.go @@ -334,7 +334,7 @@ func RunPluginSubTasks( logger.Error(err, "") where := dal.Where("task_id = ? and name = ?", task.ID, subtaskCtx.GetName()) if err := basicRes.GetDal().UpdateColumns(subtask, []dal.DalSet{ - {ColumnName: "is_failed", Value: 1}, + {ColumnName: "is_failed", Value: true}, {ColumnName: "message", Value: err.Error()}, }, where); err != nil { basicRes.GetLogger().Error(err, "error writing subtask %v status to DB", subtaskCtx.GetName())