From 8bc0464aec985c165c44b5adae62c1a6d437fd47 Mon Sep 17 00:00:00 2001 From: Marvin Zhang Date: Thu, 24 Apr 2025 21:56:50 +0800 Subject: [PATCH] fix: improve error handling during file synchronization in task runner - Updated the error handling in the Run method to log a warning message when file synchronization fails, enhancing visibility into potential issues during task execution. --- core/task/handler/runner.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/task/handler/runner.go b/core/task/handler/runner.go index 32c8798f..c7477bb5 100644 --- a/core/task/handler/runner.go +++ b/core/task/handler/runner.go @@ -159,7 +159,7 @@ func (r *Runner) Run() (err error) { // sync files worker nodes if !utils.IsMaster() { if err := r.syncFiles(); err != nil { - return r.updateTask(constants.TaskStatusError, err) + r.Warnf("error synchronizing files: %v", err) } }