#
luxiaotao1123
2025-01-08 36dcec12994c82fffe2a86a6acf12ecbd071fffb
zy-acs-manager/src/main/java/com/zy/acs/manager/core/scheduler/KernelScheduler.java
@@ -119,12 +119,7 @@
                    for (Segment segment : segments) {
                        long startTime = System.currentTimeMillis();
                        trafficService.trigger(segment);
                        long algoTime = System.currentTimeMillis() - startTime;
                        log.info("traffic calculation spend {} ms", algoTime);
                        if (segment.getState().equals(SegmentStateType.RUNNING.toString())) {
                            segment.setAlgoTime((int) algoTime);
                            segmentService.updateById(segment);
                        }
                        log.info("traffic calculation spend {} ms", System.currentTimeMillis() - startTime);
                    }
                } catch (Exception e) {
@@ -139,7 +134,7 @@
                try {
                    Thread.sleep(CORE_SCAN_FREQUENCY_MILLISECOND);
                    List<String> actionGroupIds = actionService.selectPrepareGroup();
                    List<String> actionGroupIds = actionService.selectGroupNo(ActionStsType.PREPARE);
                    for (String actionGroupId : actionGroupIds) {
                        mainService.publishAction(actionGroupId);
                    }