GanfengTan commented on code in PR #5602:
URL: https://github.com/apache/inlong/pull/5602#discussion_r949926391
##########
inlong-agent/agent-core/src/main/java/org/apache/inlong/agent/core/trigger/TriggerManager.java:
##########
@@ -116,14 +116,18 @@ public boolean submitTrigger(TriggerProfile
triggerProfile) {
}
/**
- * Preprocessing before adding trigger
+ * Preprocessing before adding trigger, default value FULL
+ *
+ * FULL: All directory by regex
+ * INCREMENT: Directory entry created
*/
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);
+ String syncType = profile.get(JobConstants.JOB_FILE_COLLECT_TYPE,
"FULL");
Review Comment:
Thanks @healchow
--
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]