Skip to content

Commit

Permalink
fix(framework): fix errors when updating is_failed in PG (#8238) (#…
Browse files Browse the repository at this point in the history
…8239)

Co-authored-by: Lynwee <[email protected]>
  • Loading branch information
github-actions[bot] and d4x1 authored Dec 12, 2024
1 parent 72c6433 commit 00ccd04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/core/runner/run_task.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 00ccd04

Please sign in to comment.