修改:hpc任务指定核数优化

This commit is contained in:
yangyang01000846
2026-01-16 16:33:14 +08:00
parent cb672abe03
commit d525106211
4 changed files with 13 additions and 9 deletions

View File

@@ -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() {

View File

@@ -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 取只是测试使用