Explorar el Código

fix:不走异步

Roc hace 4 días
padre
commit
50382c5153
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      controllers/ai_predict_model/index.go

+ 2 - 2
controllers/ai_predict_model/index.go

@@ -82,10 +82,10 @@ func (this *AiPredictModelIndexController) OpToDo() {
 		// 获取完成任务后,需要更新任务状态
 		if resp.AiPredictModelIndexId <= 0 {
 			// 如果获取失败了,那么就标记失败
-			go aiPredictModelLogic.HandleTaskRecordFailByTaskRecord(indexTaskRecordOp.TaskType, indexTaskRecordInfo, indexConfigItem, indexItem, br.Msg)
+			aiPredictModelLogic.HandleTaskRecordFailByTaskRecord(indexTaskRecordOp.TaskType, indexTaskRecordInfo, indexConfigItem, indexItem, br.Msg)
 		} else {
 			// 如果获取成功了,那么就标记进行中
-			go aiPredictModelLogic.HandleTaskRecordProcessingByTaskRecord(indexTaskRecordOp.TaskType, indexTaskRecordInfo, indexConfigItem, indexItem)
+			aiPredictModelLogic.HandleTaskRecordProcessingByTaskRecord(indexTaskRecordOp.TaskType, indexTaskRecordInfo, indexConfigItem, indexItem)
 		}
 	}()