@Override
    protected int getInstanceLimit() {
        return taskProfile.getInt(TaskConstants.FILE_MAX_NUM);
    }
Watch directory, if new valid files are created, create instance correspondingly.
inlong-agent/agent-plugins/src/main/java/org/apache/inlong/agent/plugin/task/logcollection/local/FileTask.java