You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by kl...@apache.org on 2024/04/09 06:51:52 UTC
(incubator-devlake) branch main updated: fix: task begin_at replace of pipeline begin_at (#7299)
This is an automated email from the ASF dual-hosted git repository.
klesh pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
The following commit(s) were added to refs/heads/main by this push:
new dac1b34ee fix: task begin_at replace of pipeline begin_at (#7299)
dac1b34ee is described below
commit dac1b34eee4ed904b6709e6370e9b5ebbbb7ad8e
Author: abeizn <zi...@merico.dev>
AuthorDate: Tue Apr 9 14:51:48 2024 +0800
fix: task begin_at replace of pipeline begin_at (#7299)
---
backend/core/runner/run_task.go | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/backend/core/runner/run_task.go b/backend/core/runner/run_task.go
index 0b4e0604c..aeace3940 100644
--- a/backend/core/runner/run_task.go
+++ b/backend/core/runner/run_task.go
@@ -57,8 +57,8 @@ func RunTask(
return err
}
beganAt := time.Now()
- if dbPipeline.BeganAt != nil {
- beganAt = *dbPipeline.BeganAt
+ if task.BeganAt != nil {
+ beganAt = *task.BeganAt
}
// make sure task status always correct even if it panicked
defer func() {