Forráskód Böngészése

调度排程优化

fangpy 5 hónapja
szülő
commit
80efcc4e57

+ 2 - 2
rw-aps-server/src/main/java/com/rongwei/rwapsserver/aps/service/impl/ProductionScheduleServiceImpl.java

@@ -74,9 +74,9 @@ public class ProductionScheduleServiceImpl implements ProductionScheduleService
         if(maxPlanSeconds == null || maxPlanSeconds <= 0){
             maxPlanSeconds = 1800;
         }
-        if(runPlanSeconds > maxPlanSeconds){
+        /*if(runPlanSeconds > maxPlanSeconds){
             throw new ApsException("所选排程作业太多,预计排程时间太长,请分开排程");
-        }
+        }*/
 //        int runPlanSeconds = maxPlanSeconds;
         EnvironmentMode mode = EnvironmentMode.REPRODUCIBLE;
         if(productionScheduleVo.getEnvironmentMode() != null && productionScheduleVo.getEnvironmentMode() == 1){