Update core/tasks/batchimport/execute.go

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Krau
2026-01-17 21:25:49 +08:00
committed by GitHub
parent 441d944bc2
commit dceb3737f6

View File

@@ -48,7 +48,9 @@ func (t *Task) Execute(ctx context.Context) error {
return err
}
if err != nil {
t.processingMu.Lock()
t.failed[elem.ID] = err
t.processingMu.Unlock()
logger.Errorf("Failed to process file %s: %v", elem.FileInfo.Name, err)
}
return nil