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.
This commit is contained in:
Marvin Zhang
2025-04-24 21:56:50 +08:00
parent 99414a4dde
commit 8bc0464aec

View File

@@ -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)
}
}