This is an automated email from the ASF dual-hosted git repository. abeizn pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
commit 446be617ec91abdd8240dfa083f26a9b081e7b62 Author: Klesh Wong <[email protected]> AuthorDate: Fri Sep 30 12:48:34 2022 +0800 chore: rename getTaskById to getRunningTaskById --- services/task.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/task.go b/services/task.go index cec571fe..43d41f1c 100644 --- a/services/task.go +++ b/services/task.go @@ -279,7 +279,7 @@ func runTaskStandalone(parentLog core.Logger, taskId uint64) errors.Error { return err } -func getTaskById(taskId uint64) *RunningTaskData { +func getRunningTaskById(taskId uint64) *RunningTaskData { runningTasks.mu.Lock() defer runningTasks.mu.Unlock() @@ -287,7 +287,7 @@ func getTaskById(taskId uint64) *RunningTaskData { } func updateTaskProgress(taskId uint64, progress chan core.RunningProgress) { - data := getTaskById(taskId) + data := getRunningTaskById(taskId) if data == nil { return }
