kongdeqiang
2026-04-13 4b192d15908105c63326937d0b1cfd7aa7523c40
src/main/java/com/wgcloud/task/ScheduledTask.java
@@ -84,7 +84,9 @@
    @Scheduled(initialDelay = 30000L, fixedRate = 2 * 60 * 1000)
    public void ospfDownCheckTask() {
        logger.info("ospf链路检测任务开始------------" + DateUtil.getDateTimeString(new Date()));
        ospfInfoService.getDetailedOspfNeighborInfo();
        //ospfInfoService.getDetailedOspfNeighborInfo();
        //ospfInfoService.getRouterStatus();
        ospfInfoService.getPyRouterStatus();
        logger.info("ospf链路检测任务结束------------" + DateUtil.getDateTimeString(new Date()));
    }
@@ -92,7 +94,7 @@
     * 5秒后执行,之后每24小时刷新一次
     * 检测license
     */
    @Scheduled(initialDelay = 5000L, fixedRate = 24 * 60 * 60 * 1000)
    //@Scheduled(initialDelay = 5000L, fixedRate = 24 * 60 * 60 * 1000)
    public void validateLicense() {
        logger.info("validateLicense------------" + DateUtil.getDateTimeString(new Date()));
        try {