zy-acs-manager/src/main/java/com/zy/acs/manager/core/scheduler/KernelScheduler.java
@@ -35,7 +35,10 @@ @Component public class KernelScheduler { public static int CORE_SCAN_FREQUENCY_MILLISECOND = 30; private static final int LOCK_TIMEOUT = 5; private final ReentrantLock lock = new ReentrantLock(Boolean.TRUE); private Thread trafficCalcThread; @@ -108,7 +111,7 @@ this.trafficCalcThread = new Thread(() -> { while (!Thread.currentThread().isInterrupted()) { try { Thread.sleep(100); Thread.sleep(CORE_SCAN_FREQUENCY_MILLISECOND); List<Segment> segments = segmentService.list(new LambdaQueryWrapper<Segment>() .eq(Segment::getState, SegmentStateType.WAITING.toString()) @@ -129,7 +132,7 @@ this.actionPublicThread = new Thread(() -> { while (!Thread.currentThread().isInterrupted()) { try { Thread.sleep(100); Thread.sleep(CORE_SCAN_FREQUENCY_MILLISECOND); List<String> actionGroupIds = actionService.selectPrepareGroup(); for (String actionGroupId : actionGroupIds) { zy-acs-manager/src/main/java/com/zy/acs/manager/core/service/PatrolService.java
@@ -34,7 +34,7 @@ @Service public class PatrolService { private static final int SCHEDULE_TIME_INTERVAL = 5; private static final int SCHEDULE_TIME_INTERVAL = 300; public static final Map<String, ScheduledFuture<?>> AGV_PATROL_MAP = new ConcurrentHashMap<>(); @@ -169,7 +169,7 @@ } }; ScheduledFuture<?> scheduledFuture = scheduler.scheduleAtFixedRate(patrolTask, 0, SCHEDULE_TIME_INTERVAL, TimeUnit.SECONDS); ScheduledFuture<?> scheduledFuture = scheduler.scheduleAtFixedRate(patrolTask, 0, SCHEDULE_TIME_INTERVAL, TimeUnit.MILLISECONDS); AGV_PATROL_MAP.put(agvNo, scheduledFuture); log.info("已启动AGV " + agvNo + " 的跑库任务。"); zy-acs-manager/src/main/java/com/zy/acs/manager/fake/FakeProcessor.java
@@ -88,7 +88,7 @@ this.responseThread = new Thread(() -> { while (!Thread.currentThread().isInterrupted()) { try { Thread.sleep(100); Thread.sleep(30); if (configService.getVal("fakeSign", Boolean.class)) { this.responseTheRequest(); @@ -111,7 +111,7 @@ this.simulatorTread = new Thread(() -> { while (!Thread.currentThread().isInterrupted()) { try { Thread.sleep(100); Thread.sleep(30); if (configService.getVal("fakeSign", Boolean.class)) {