Browse Source

优化

pull/235/head
chenzhihang 8 months ago
parent
commit
25381c26ae
3 changed files with 3 additions and 0 deletions
  1. +1
    -0
      ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/ActiveLearnServiceImpl.java
  2. +1
    -0
      ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/ExperimentServiceImpl.java
  3. +1
    -0
      ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/RayServiceImpl.java

+ 1
- 0
ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/ActiveLearnServiceImpl.java View File

@@ -199,6 +199,7 @@ public class ActiveLearnServiceImpl implements ActiveLearnService {
Map<String, String> output2 = (Map<String, String>) output1.get(0);
String outputPath = output2.get("path").replace("{{workflow.name}}", (String) metadata.get("name"));
activeLearnIns.setResultPath(outputPath);
activeLearnInsService.queryStatusFromArgo(activeLearnIns);
activeLearnInsDao.insert(activeLearnIns);
activeLearnInsService.updateActiveLearnStatus(id);
// 记录开始扣除积分


+ 1
- 0
ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/ExperimentServiceImpl.java View File

@@ -306,6 +306,7 @@ public class ExperimentServiceImpl implements ExperimentService {
experimentIns.setMetricRecord(JacksonUtil.toJSONString(metricRecord));
}
//插入ExperimentIns表中
experimentInsService.queryStatusFromArgo(experimentIns);
ExperimentIns insert = experimentInsService.insert(experimentIns);
//插入到模型依赖关系表
if (dependendcy != null && trainInfo != null) {


+ 1
- 0
ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/RayServiceImpl.java View File

@@ -218,6 +218,7 @@ public class RayServiceImpl implements RayService {
Map<String, String> output2 = (Map<String, String>) output1.get(0);
String outputPath = output2.get("path").replace("{{workflow.name}}", (String) metadata.get("name")) + "/hpo";
rayIns.setResultPath(outputPath);
rayInsService.queryStatusFromArgo(rayIns);
rayInsDao.insert(rayIns);
rayInsService.updateRayStatus(id);
// 记录开始扣除积分


Loading…
Cancel
Save