private void printInstanceState() {
        long currentTime = AgentUtils.getCurrentTime();
        if (currentTime - lastPrintTime > INSTANCE_PRINT_INTERVAL_MS) {
            List<InstanceProfile> instances = instanceStore.getInstances(taskId);
            InstancePrintStat stat = new InstancePrintStat();
            for (int i = 0; i < instances.size(); i++) {
                InstanceProfile instance = instances.get(i);
                stat.stat(instance.getState());
            }
            LOGGER.info(
                    "instanceManager running! taskId {} mem {} total {} {} action count {}",
                    taskId, instanceMap.size(), instances.size(), stat, actionQueue.size());
            lastPrintTime = currentTime;
        }
    }
thread for core thread.

@return runnable profile.
inlong-agent/agent-core/src/main/java/org/apache/inlong/agent/core/instance/InstanceManager.java