public static TaskProfile copyJobProfile(TaskProfile taskProfile, File pendingFile) {
        TaskProfile copiedProfile = TaskProfile.parseJsonStr(taskProfile.toJsonStr());
        String md5 = AgentUtils.getFileMd5(pendingFile);
        copiedProfile.set(pendingFile.getAbsolutePath() + ".md5", md5);
        copiedProfile.set(TaskConstants.TASK_FILE_TRIGGER, null); // del trigger id
        copiedProfile.set(TaskConstants.FILE_DIR_FILTER_PATTERNS, pendingFile.getAbsolutePath());
        return copiedProfile;
    }
convert a file of trigger dir to a subtask JobProfile of TriggerProfile
inlong-agent/agent-plugins/src/main/java/org/apache/inlong/agent/plugin/utils/PluginUtils.java