private void printTaskDetail() {
        if (AgentUtils.getCurrentTime() - lastPrintTime > CORE_THREAD_PRINT_TIME) {
            List<TaskProfile> tasksInStore = taskStore.getTasks();
            TaskPrintStat stat = new TaskPrintStat();
            for (int i = 0; i < tasksInStore.size(); i++) {
                TaskProfile task = tasksInStore.get(i);
                stat.stat(task.getState());
            }
            LOGGER.info("taskManager running! mem {} total {} {} ", taskMap.size(), tasksInStore.size(), stat);
            lastPrintTime = AgentUtils.getCurrentTime();
        }
    }
thread for core thread.

@return runnable profile.
inlong-agent/agent-core/src/main/java/org/apache/inlong/agent/core/task/TaskManager.java