修改:hpc任务指定核数优化
This commit is contained in:
@@ -281,10 +281,10 @@ public class ProcessController implements IFlowableFeignClient {
|
||||
config.setUuid(appuuid);
|
||||
config.setBeforeNodeId(beforeNodeId);
|
||||
if(!Objects.isNull(params.get("masterFileRegularStr"))){
|
||||
config.setMasterFileRegularStr(params.get("masterFileRegularStr").toString());
|
||||
config.setInputFormat(params.get("masterFileRegularStr").toString());
|
||||
}
|
||||
if(!Objects.isNull(params.get("inputFilesRegularStr"))){
|
||||
config.setInputFilesRegularStr(params.get("inputFilesRegularStr").toString());
|
||||
config.setSlaveFormat(params.get("inputFilesRegularStr").toString());
|
||||
}
|
||||
String currentNodeId = params.get("currentNodeId").toString();
|
||||
DelegateExecution execution = new DelegateExecution() {
|
||||
|
||||
@@ -65,12 +65,13 @@ public class HpcHandler implements ExecutionHandler<Map<String, Object>,HPCExecu
|
||||
submitHpcTaskRemoteReq.setSoftwareId(config.getUuid());
|
||||
String beforeNodeId = config.getBeforeNodeId();
|
||||
String currentNodeId =execution.getCurrentActivityId();
|
||||
String masterFileRegularStr = config.getMasterFileRegularStr();
|
||||
String inputFilesRegularStr = config.getInputFilesRegularStr();
|
||||
String masterFileRegularStr = config.getInputFormat();
|
||||
String inputFilesRegularStr = config.getSlaveFormat();
|
||||
if(StringUtils.isBlank(masterFileRegularStr)){
|
||||
throw new RuntimeException("Hpc任务执行失败,主求解文件规则不能是空");
|
||||
}
|
||||
CoreLogger.info("beforeNodeId:{},currentNodeId:{},masterFileRegularStr:{},inputFilesRegularStr:{}",beforeNodeId,currentNodeId,masterFileRegularStr,inputFilesRegularStr);
|
||||
CoreLogger.info("Hpc执行 processDefinitionId:{},processInstanceId:{}",execution.getProcessDefinitionId(),execution.getProcessInstanceId());
|
||||
// 初始化用户/租户信息
|
||||
initUserInfo(execution,params);
|
||||
// params 取只是测试使用
|
||||
|
||||
Reference in New Issue
Block a user