From c594940c83444fcd923e2a76c6b385d595baeb8e Mon Sep 17 00:00:00 2001 From: gazebo Date: Fri, 17 Jan 2020 23:20:55 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=AF=E7=94=A8AddFailedList?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxutils/tasksch/task.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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...) + } } }