| @@ -204,7 +204,7 @@ public class ActiveLearnServiceImpl implements ActiveLearnService { | |||||
| // 记录开始扣除积分 | // 记录开始扣除积分 | ||||
| resourceOccupyService.startDeduce(activeLearn.getComputingResourceId(), 1, Constant.TaskType_ActiveLearn, id, activeLearnIns.getId(), null, activeLearn.getName(), null, null); | resourceOccupyService.startDeduce(activeLearn.getComputingResourceId(), 1, Constant.TaskType_ActiveLearn, id, activeLearnIns.getId(), null, activeLearn.getName(), null, null); | ||||
| } catch (Exception e) { | } catch (Exception e) { | ||||
| throw new RuntimeException(e); | |||||
| throw new RuntimeException(e.getMessage()); | |||||
| } | } | ||||
| } | } | ||||
| return "执行成功"; | return "执行成功"; | ||||
| @@ -212,7 +212,7 @@ public class AutoMlServiceImpl implements AutoMlService { | |||||
| autoMlInsDao.insert(autoMlIns); | autoMlInsDao.insert(autoMlIns); | ||||
| autoMlInsService.updateAutoMlStatus(id); | autoMlInsService.updateAutoMlStatus(id); | ||||
| } catch (Exception e) { | } catch (Exception e) { | ||||
| throw new RuntimeException(e); | |||||
| throw new RuntimeException(e.getMessage()); | |||||
| } | } | ||||
| return "执行成功"; | return "执行成功"; | ||||
| } | } | ||||
| @@ -324,7 +324,7 @@ public class ExperimentServiceImpl implements ExperimentService { | |||||
| resourceOccupyService.startDeduce((Integer) node.get("computing_resource_id"), 1, Constant.TaskType_Workflow, Long.valueOf(id), Long.valueOf(insert.getId()), experiment.getWorkflowId(), experiment.getName(), entry.getKey(), Constant.State_building); | resourceOccupyService.startDeduce((Integer) node.get("computing_resource_id"), 1, Constant.TaskType_Workflow, Long.valueOf(id), Long.valueOf(insert.getId()), experiment.getWorkflowId(), experiment.getName(), entry.getKey(), Constant.State_building); | ||||
| } | } | ||||
| } catch (Exception e) { | } catch (Exception e) { | ||||
| throw new Exception(e); | |||||
| throw new Exception(e.getMessage()); | |||||
| } | } | ||||
| List<ExperimentIns> updatedExperimentInsList = experimentInsService.getByExperimentId(id); | List<ExperimentIns> updatedExperimentInsList = experimentInsService.getByExperimentId(id); | ||||
| experiment.setExperimentInsList(updatedExperimentInsList); | experiment.setExperimentInsList(updatedExperimentInsList); | ||||
| @@ -818,7 +818,7 @@ public class ExperimentServiceImpl implements ExperimentService { | |||||
| try { | try { | ||||
| newExperiment = this.runExperiment(newExperiment.getId()); | newExperiment = this.runExperiment(newExperiment.getId()); | ||||
| } catch (Exception e) { | } catch (Exception e) { | ||||
| throw new RuntimeException(e); | |||||
| throw new RuntimeException(e.getMessage()); | |||||
| } | } | ||||
| return newExperiment; | return newExperiment; | ||||
| @@ -99,7 +99,7 @@ public class GitServiceImpl implements GitService { | |||||
| token = jedis.get(ci4sUsername + "_gitToken"); | token = jedis.get(ci4sUsername + "_gitToken"); | ||||
| } | } | ||||
| } catch (Exception e) { | } catch (Exception e) { | ||||
| throw new RuntimeException(e); | |||||
| throw new RuntimeException(e.getMessage()); | |||||
| } | } | ||||
| } | } | ||||
| return token; | return token; | ||||
| @@ -238,7 +238,7 @@ public class MachineLearnServiceImpl implements MachineLearnService { | |||||
| resourceOccupyService.startDeduce(computingResourceId, 1, Constant.TaskType_ML, id, machineLearnIns.getId(), null, machineLearn.getName(), null, null); | resourceOccupyService.startDeduce(computingResourceId, 1, Constant.TaskType_ML, id, machineLearnIns.getId(), null, machineLearn.getName(), null, null); | ||||
| } | } | ||||
| } catch (Exception e) { | } catch (Exception e) { | ||||
| throw new RuntimeException(e); | |||||
| throw new RuntimeException(e.getMessage()); | |||||
| } | } | ||||
| return "执行成功"; | return "执行成功"; | ||||
| } | } | ||||
| @@ -678,7 +678,7 @@ public class ModelsServiceImpl implements ModelsService { | |||||
| dvcUtils.dvcPush(rootPath); | dvcUtils.dvcPush(rootPath); | ||||
| } catch (Exception e) { | } catch (Exception e) { | ||||
| logger.error(e.getMessage(), e); | logger.error(e.getMessage(), e); | ||||
| throw new RuntimeException(e); | |||||
| throw new RuntimeException(e.getMessage()); | |||||
| } | } | ||||
| return null; | return null; | ||||
| }); | }); | ||||
| @@ -183,7 +183,7 @@ public class NewDatasetServiceImpl implements NewDatasetService { | |||||
| dvcUtils.dvcPush(localPath); | dvcUtils.dvcPush(localPath); | ||||
| } catch (Exception e) { | } catch (Exception e) { | ||||
| logger.error(e.getMessage(), e); | logger.error(e.getMessage(), e); | ||||
| throw new RuntimeException(e); | |||||
| throw new RuntimeException(e.getMessage()); | |||||
| } | } | ||||
| return null; | return null; | ||||
| }); | }); | ||||
| @@ -223,7 +223,7 @@ public class RayServiceImpl implements RayService { | |||||
| // 记录开始扣除积分 | // 记录开始扣除积分 | ||||
| resourceOccupyService.startDeduce(ray.getComputingResourceId(), 1, Constant.TaskType_Ray, id, rayIns.getId(), null, ray.getName(), null, null); | resourceOccupyService.startDeduce(ray.getComputingResourceId(), 1, Constant.TaskType_Ray, id, rayIns.getId(), null, ray.getName(), null, null); | ||||
| } catch (Exception e) { | } catch (Exception e) { | ||||
| throw new RuntimeException(e); | |||||
| throw new RuntimeException(e.getMessage()); | |||||
| } | } | ||||
| } | } | ||||
| return "执行成功"; | return "执行成功"; | ||||
| @@ -191,7 +191,7 @@ public class ServiceServiceImpl implements ServiceService { | |||||
| serviceVersionVo.setDocPath(baseUrl + "/redoc"); | serviceVersionVo.setDocPath(baseUrl + "/redoc"); | ||||
| serviceVersionVo.setPagePath(baseUrl + "/gradio"); | serviceVersionVo.setPagePath(baseUrl + "/gradio"); | ||||
| } catch (MalformedURLException e) { | } catch (MalformedURLException e) { | ||||
| throw new RuntimeException(e); | |||||
| throw new RuntimeException(e.getMessage()); | |||||
| } | } | ||||
| } | } | ||||
| return serviceVersionVo; | return serviceVersionVo; | ||||
| @@ -335,7 +335,7 @@ public class WorkflowServiceImpl implements WorkflowService { | |||||
| Map<String, Object> image = (Map<String, Object>) paramMap.get("--image"); | Map<String, Object> image = (Map<String, Object>) paramMap.get("--image"); | ||||
| saveImageWorkFlow((String) image.get("value"), workflowId, workflowName); | saveImageWorkFlow((String) image.get("value"), workflowId, workflowName); | ||||
| } catch (Exception e) { | } catch (Exception e) { | ||||
| throw new Exception(e); | |||||
| throw new Exception(e.getMessage()); | |||||
| } | } | ||||
| } | } | ||||