临时禁止tasksch.AddFailedList
This commit is contained in:
@@ -399,13 +399,13 @@ func (t *BaseTask) AddFailedList(failedList ...interface{}) {
|
|||||||
// defer t.locker.Unlock()
|
// defer t.locker.Unlock()
|
||||||
// t.FailedList = append(t.FailedList, failedList...)
|
// t.FailedList = append(t.FailedList, failedList...)
|
||||||
|
|
||||||
if t.parent == nil || t.finishHook != nil {
|
// if t.parent == nil || t.finishHook != nil {
|
||||||
t.locker.Lock()
|
// t.locker.Lock()
|
||||||
defer t.locker.Unlock()
|
// defer t.locker.Unlock()
|
||||||
t.FailedList = append(t.FailedList, failedList...)
|
// t.FailedList = append(t.FailedList, failedList...)
|
||||||
} else {
|
// } else {
|
||||||
t.parent.AddFailedList(failedList...)
|
// t.parent.AddFailedList(failedList...)
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user