| | |
| | | if (taskNo != 0) { |
| | | //存在任务需要执行 |
| | | long startTime = System.currentTimeMillis(); |
| | | News.info("execute {},{}", deviceConfig.getDeviceNo(), taskNo); |
| | | News.info("[RCS Debug] Execute {},{}", deviceConfig.getDeviceNo(), taskNo); |
| | | // 在循环中使用 |
| | | boolean result = TimeoutExecutor.executeWithTimeout( |
| | | () -> shuttleAction.executeWork(deviceConfig.getDeviceNo(), taskNo), |
| | |
| | | TimeUnit.SECONDS |
| | | ); |
| | | Thread.sleep(100); |
| | | News.info("execute end {},{},{}", deviceConfig.getDeviceNo(), taskNo, System.currentTimeMillis() - startTime); |
| | | News.info("[RCS Debug] Execute end {},{},{}", deviceConfig.getDeviceNo(), taskNo, System.currentTimeMillis() - startTime); |
| | | } |
| | | } |
| | | }catch (Exception e){ |