修改:Hpc任务删除逻辑优化

This commit is contained in:
2026-02-10 17:51:35 +08:00
parent c3cf6092f8
commit 6d9d114363

View File

@@ -587,7 +587,7 @@ public class PbsServiceDecorator implements IPbsServiceDecorator {
}
// 2. 校验任务状态(非进行中、文件非上传中)
Pair<Boolean,List<SimulationJob>> pairCheck= checkJobStatus(jobList);
if(!pairCheck.getLeft()){
if(pairCheck.getLeft()){
log.error("checkJobStatus true,{}",JSON.toJSONString(pairCheck.getRight()));
throw new RuntimeException("删除的任务状态和文件状态不能是未完成");
}