Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion pkg/disttask/framework/taskexecutor/task_executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,13 @@ func (e *BaseTaskExecutor) Run() {
// task executor keeps running its subtasks even though some subtask
// might have failed, we rely on scheduler to detect the error, and
// notify task executor or manager to cancel.
e.sampleLogger.Error("run subtask failed", zap.Error(err))
if llog.IsContextCanceledError(err) {
// Context canceled is expected when scheduler/manager cancels executor,
// so log as info instead of a subtask failure.
e.sampleLogger.Info("subtask run canceled by context", llog.ShortError(err))
} else {
e.sampleLogger.Error("run subtask failed", zap.Error(err))
}
Comment thread
coderabbitai[bot] marked this conversation as resolved.
} else {
// if we run a subtask successfully, we will try to run next subtask
// immediately for once.
Expand Down