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
  • Loading branch information
d4x1 authored Dec 12, 2024
1 parent 4305b78 commit c048951
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 @@ -335,7 +335,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 c048951

Please sign in to comment.