diff --git a/business/jxutils/tasksch/task.go b/business/jxutils/tasksch/task.go index dc3cc0fd4..89f407e4a 100644 --- a/business/jxutils/tasksch/task.go +++ b/business/jxutils/tasksch/task.go @@ -399,13 +399,13 @@ func (t *BaseTask) AddFailedList(failedList ...interface{}) { // defer t.locker.Unlock() // t.FailedList = append(t.FailedList, failedList...) - // if t.parent == nil || t.finishHook != nil { - // t.locker.Lock() - // defer t.locker.Unlock() - // t.FailedList = append(t.FailedList, failedList...) - // } else { - // t.parent.AddFailedList(failedList...) - // } + if t.parent == nil || t.finishHook != nil { + t.locker.Lock() + defer t.locker.Unlock() + t.FailedList = append(t.FailedList, failedList...) + } else { + t.parent.AddFailedList(failedList...) + } } }