public void registerMonitorTask(final String taskName, final Runnable task, final long interval) {
        cancelMonitorTask(taskName);
        ScheduledFuture<?> future = scheduler.scheduleAtFixedRate(
                task,
                Instant.now().plusMillis(interval),
                Duration.ofMillis(interval)
        );

        taskMap.put(taskName, future);
    }
registerMonitorTask.

@param taskName taskName
@param task task
@param interval interval
shenyu-admin/src/main/java/org/apache/shenyu/admin/scale/scaler/dynamic/TaskSchedulerManager.java