From d6600976e3845b9698afe4952418f7336217a389 Mon Sep 17 00:00:00 2001 From: gazebo Date: Fri, 17 Jan 2020 22:57:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=B4=E6=97=B6=E7=A6=81=E6=AD=A2tasksch.Add?= =?UTF-8?q?FailedList?= 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 89f407e4a..dc3cc0fd4 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...) + // } } }