private Runnable coreThread() {
        return () -> {
            Thread.currentThread().setName("module-manager-core");
            restoreFromLocalFile(confPath);
            while (isRunnable()) {
                try {
                    dealWithConfigQueue(configQueue);
                    checkModules();
                    AuditUtils.add(AuditUtils.AUDIT_ID_AGENT_TASK_MGR_HEARTBEAT, "", "",
                            AgentUtils.getCurrentTime(), 1, 1);
                    AgentUtils.silenceSleepInMs(CORE_THREAD_SLEEP_TIME);
                } catch (Throwable ex) {
                    LOGGER.error("exception caught", ex);
                    ThreadUtils.threadThrowableHandler(Thread.currentThread(), ex);
                    AgentUtils.silenceSleepInMs(CORE_THREAD_SLEEP_TIME);
                }
            }
        };
    }
Thread for core thread.

@return runnable profile.
inlong-agent/agent-installer/src/main/java/org/apache/inlong/agent/installer/ModuleManager.java