qidongsheng 0619

This commit is contained in:
qidongsheng
2020-06-19 14:11:37 +08:00
parent baf505b677
commit c88b737478
9 changed files with 292 additions and 30 deletions

View File

@@ -482,7 +482,7 @@ func (t *BaseTask) run(taskHandler func()) {
}
}
func SendMessage(t *BaseTask) {
func SendMessage(t *BaseTask) {//基类任务
time.Sleep(10 * time.Millisecond) // 等待GetResult中的isGetResultCalled赋值
globals.SugarLogger.Debugf("BaseTask task ID:%s, name:%s finished, isGetResultCalled:%t", t.ID, t.Name, t.isGetResultCalled)
if !t.isGetResultCalled && t.parent == nil && len(GetTasks(t.ID, TaskStatusBegin, TaskStatusEnd, 24, "")) > 0 {