GanfengTan commented on code in PR #5261:
URL: https://github.com/apache/inlong/pull/5261#discussion_r935330511


##########
inlong-agent/agent-core/src/main/java/org/apache/inlong/agent/core/trigger/TriggerManager.java:
##########
@@ -120,9 +120,13 @@ public boolean submitTrigger(TriggerProfile 
triggerProfile) {
      */
     public void preprocessTrigger(TriggerProfile profile) {
         String syncType = profile.get(JobConstants.JOB_FILE_COLLECT_TYPE, "");
-        if (FileCollectType.FULL.equals(syncType)) {
-            LOGGER.info("Initialize submit full path. trigger {} ", 
profile.getTriggerId());
-            manager.getJobManager().submitFileJobProfile(profile);
+        switch (FileConstants.valueOf(syncType)) {
+            case FULL:
+            case INCREMENT:

Review Comment:
   Filter out unsupported collect type to reduce task submission



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to