GanfengTan commented on code in PR #5261:
URL: https://github.com/apache/inlong/pull/5261#discussion_r936461435
##########
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:
+ LOGGER.info("Initialize submit full path. trigger {} ",
profile.getTriggerId());
+ manager.getJobManager().submitFileJobProfile(profile);
+ break;
+ default:
Review Comment:
done
--
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]