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

##########
inlong-manager/manager-schedule/src/main/java/org/apache/inlong/manager/schedule/airflow/config/AirflowConfig.java:
##########
@@ -68,6 +72,17 @@ public class AirflowConfig extends ClientConfiguration {
     @Value("${schedule.engine.airflow.baseUrl:http://localhost:8080/}";)
     private String baseUrl;
 
+    @PostConstruct
+    public void init() {
+        if (StringUtil.isNotBlank(inlongManagerUrl)) {
+            String[] urlInfo = inlongManagerUrl.split(InlongConstants.COLON);
+            if (urlInfo.length == 2) {
+                this.inlongManagerHost = urlInfo[0];
+                this.inlongManagerPort = Integer.parseInt(urlInfo[1]);
+            }

Review Comment:
   ```suggestion
             try {
               if (StringUtil.isNotBlank(inlongManagerUrl)) {
                   String[] urlInfo = 
inlongManagerUrl.split(InlongConstants.COLON);
                   if (urlInfo.length == 2) {
                       this.inlongManagerHost = urlInfo[0];
                       this.inlongManagerPort = Integer.parseInt(urlInfo[1]);
                   }
               }
               LOGGER.info("Init AirflowConfig success for manager url ={}", 
this.inlongManagerUrl);
           } catch (Exception e) {
               LOGGER.error("Init AirflowConfig failed for manager url={}: ", 
this.inlongManagerUrl, e);
           }
   ```



-- 
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: commits-unsubscr...@inlong.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to