fuweng11 commented on code in PR #9874:
URL: https://github.com/apache/inlong/pull/9874#discussion_r1538865028


##########
inlong-manager/manager-web/src/main/resources/application-dev.properties:
##########
@@ -97,6 +97,11 @@ source.update.enabled=false
 source.update.before.seconds=60
 source.update.interval=60
 
+# If turned on, Regularly clear expired supplementary recording tasks
+subSource.cleansing.enabled=false
+subSource.cleansing.interval=10

Review Comment:
   Fixed.



##########
inlong-manager/manager-dao/src/main/java/org/apache/inlong/manager/dao/mapper/StreamSourceEntityMapper.java:
##########
@@ -190,6 +190,11 @@ void updateStatusByIds(@Param("idList") List<Integer> 
idList, @Param("status") I
      */
     void updateStatusByDeleted();
 
+    /**
+     * Logic delete the sub source by modifiy time
+     */
+    void logicalDeleteByTimeout(@Param("beforeDay") Integer beforeDays);
+

Review Comment:
   Fixed.



##########
inlong-manager/manager-service/src/main/java/org/apache/inlong/manager/service/source/StreamSourceServiceImpl.java:
##########
@@ -629,4 +630,12 @@ private void chkUnmodifiableParams(SourceRequest request) {
         request.setInlongStreamId(entity.getInlongStreamId());
         request.setSourceName(entity.getSourceName());
     }
+
+    @Override
+    public Integer addSub(SubSourceRequest request, String operator) {
+        StreamSourceEntity entity = 
sourceMapper.selectById(request.getSourceId());
+        StreamSourceOperator sourceOperator = 
operatorFactory.getInstance(entity.getSourceType());
+        int id = sourceOperator.addSubSource(request, operator);
+        return id;

Review Comment:
   Fixed.



-- 
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