This is an automated email from the ASF dual-hosted git repository.
lynwee pushed a commit to branch release-v1.0
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
The following commit(s) were added to refs/heads/release-v1.0 by this push:
new 00ccd0413 fix(framework): fix errors when updating `is_failed` in PG
(#8238) (#8239)
00ccd0413 is described below
commit 00ccd0413321cff025a21f14e3a3ba9cd9507244
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Thu Dec 12 10:50:51 2024 +0800
fix(framework): fix errors when updating `is_failed` in PG (#8238) (#8239)
Co-authored-by: Lynwee <[email protected]>
---
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 84f322c7a..8148a89de 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())