private void stat(TaskStateEnum state) {
            switch (state) {
                case NEW: {
                    newCount++;
                    break;
                }
                case RUNNING: {
                    runningCont++;
                    break;
                }
                case FROZEN: {
                    frozenCount++;
                    break;
                }
                case RETRY_FINISH: {
                    finishedCount++;
                    break;
                }
                default: {
                    otherCount++;
                }
            }
        }
handle the task config from manager, including add, delete, update etc.
the task config is store in both task store and memory.
inlong-agent/agent-core/src/main/java/org/apache/inlong/agent/core/task/TaskManager.java