|
@@ -271,15 +271,14 @@ public class DataAugmentationServiceImpl extends BaseServiceImpl<DataAugmentatio
|
|
|
transmissionObject.setOtherParams(dataAugmentation.getHyperparameterConfiguration());
|
|
|
HttpResponseEntity responseEntity = sendPostMsg(data_augmentation_start_url, transmissionObject);
|
|
|
if (responseEntity != null && responseEntity.getStatus() == 200) {
|
|
|
-
|
|
|
dataAugmentation.setStartTime(new Date());
|
|
|
dataAugmentation.setStatus(BizConstant.ModelStatus.RUNNING);
|
|
|
updateById(dataAugmentation);
|
|
|
return CommonResult.success("任务开始成功,请等待完成");
|
|
|
}
|
|
|
else {
|
|
|
- dataAugmentation.setStatus(BizConstant.ModelStatus.FAILED);
|
|
|
- updateById(dataAugmentation);
|
|
|
+// dataAugmentation.setStatus(BizConstant.ModelStatus.FAILED);
|
|
|
+// updateById(dataAugmentation);
|
|
|
return CommonResult.fail("任务开始失败,请检查算法服务!");
|
|
|
}
|
|
|
} catch (IOException e) {
|