|
|
@@ -76,13 +76,11 @@ public class JupyterServiceImpl implements JupyterService { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
public String runJupyterService(Integer id) { |
|
|
|
|
|
|
|
|
public String runJupyterService(Integer id) throws Exception { |
|
|
DevEnvironment devEnvironment = this.devEnvironmentDao.queryById(id); |
|
|
DevEnvironment devEnvironment = this.devEnvironmentDao.queryById(id); |
|
|
// if(devEnvironment == null){ |
|
|
|
|
|
// |
|
|
|
|
|
// } |
|
|
|
|
|
String envName = devEnvironment.getName(); |
|
|
|
|
|
//TODO 设置环境变量 |
|
|
|
|
|
|
|
|
if(devEnvironment == null){ |
|
|
|
|
|
throw new Exception("开发环境配置不存在"); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// 提取数据集,模型信息,得到数据集模型的path |
|
|
// 提取数据集,模型信息,得到数据集模型的path |
|
|
Map<String, Object> dataset = JacksonUtil.parseJSONStr2Map(devEnvironment.getDataset()); |
|
|
Map<String, Object> dataset = JacksonUtil.parseJSONStr2Map(devEnvironment.getDataset()); |
|
|
@@ -132,7 +130,6 @@ public class JupyterServiceImpl implements JupyterService { |
|
|
if(StringUtils.isEmpty(frameLogPathVo.getPath())){ |
|
|
if(StringUtils.isEmpty(frameLogPathVo.getPath())){ |
|
|
return JupyterStatusVo; |
|
|
return JupyterStatusVo; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
LoginUser loginUser = SecurityUtils.getLoginUser(); |
|
|
LoginUser loginUser = SecurityUtils.getLoginUser(); |
|
|
String podName = loginUser.getUsername().toLowerCase() + "-editor-pod"; |
|
|
String podName = loginUser.getUsername().toLowerCase() + "-editor-pod"; |
|
|
|
|
|
|
|
|
|