mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-21 17:21:09 +01:00
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:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user