fuweng11 commented on code in PR #11570:
URL: https://github.com/apache/inlong/pull/11570#discussion_r1865413886
##########
inlong-common/src/main/java/org/apache/inlong/common/enums/TaskTypeEnum.java:
##########
@@ -44,11 +44,11 @@ public enum TaskTypeEnum {
REDIS(11),
MQTT(12),
HUDI(13),
+ COS(14),
+ HA_BINLOG(101),
Review Comment:
This value is not used anywhere, please delete it.
##########
inlong-agent/agent-common/src/main/java/org/apache/inlong/agent/pojo/TaskProfileDto.java:
##########
@@ -544,6 +580,15 @@ public static TaskProfile convertToTaskProfile(DataConfig
dataConfig) {
case MOCK:
profileDto.setTask(task);
break;
+ case COS:
+ task.setTaskClass(DEFAULT_COS_TASK);
+ COSTask cosTask = getCOSTask(dataConfig);
+ task.setCycleUnit(cosTask.getCycleUnit());
+ task.setCosTask(cosTask);
+ task.setSource(COS_SOURCE);
+ task.setRetry(cosTask.getRetry());
+ profileDto.setTask(task);
+ break;
default:
Review Comment:
By default, no action has been taken. Please add a log or throw an exception.
--
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]