You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by gi...@apache.org on 2023/08/18 07:20:54 UTC

[incubator-devlake] branch release-v0.18-auto-cherry-pick-5910 created (now 2b2f33b04)

This is an automated email from the ASF dual-hosted git repository.

github-bot pushed a change to branch release-v0.18-auto-cherry-pick-5910
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git


      at 2b2f33b04 fix: rerun failed with LOCK TABLE (#5910)

This branch includes the following new commits:

     new 2b2f33b04 fix: rerun failed with LOCK TABLE (#5910)

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[incubator-devlake] 01/01: fix: rerun failed with LOCK TABLE (#5910)

Posted by gi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

github-bot pushed a commit to branch release-v0.18-auto-cherry-pick-5910
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git

commit 2b2f33b045c9e505dee0b9ff3cd9682a26d8da2f
Author: Klesh Wong <zh...@merico.dev>
AuthorDate: Fri Aug 18 15:20:34 2023 +0800

    fix: rerun failed with LOCK TABLE (#5910)
---
 backend/server/services/pipeline.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/backend/server/services/pipeline.go b/backend/server/services/pipeline.go
index 1a1f3006a..3c8daa50d 100644
--- a/backend/server/services/pipeline.go
+++ b/backend/server/services/pipeline.go
@@ -503,7 +503,7 @@ func RerunPipeline(pipelineId uint64, task *models.Task) (tasks []*models.Task,
 	for _, t := range failedTasks {
 		// mark previous task failed
 		t.Status = models.TASK_FAILED
-		err := tx.UpdateColumn(t, "status", models.TASK_FAILED)
+		err := db.UpdateColumn(t, "status", models.TASK_FAILED)
 		if err != nil {
 			return nil, err
 		}