You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@linkis.apache.org by "huangKai-2323 (via GitHub)" <gi...@apache.org> on 2023/03/07 02:29:46 UTC

[GitHub] [linkis] huangKai-2323 commented on a diff in pull request #4321: [feat]Entrance starts to clear the running tasks of the node within one day

huangKai-2323 commented on code in PR #4321:
URL: https://github.com/apache/linkis/pull/4321#discussion_r1127276348


##########
linkis-computation-governance/linkis-entrance/src/main/java/org/apache/linkis/entrance/server/DefaultEntranceServer.java:
##########
@@ -55,6 +58,20 @@ public DefaultEntranceServer(EntranceContext entranceContext) {
   public void init() {
     getEntranceWebSocketService();
     addRunningJobEngineStatusMonitor();
+    sendEntranceInstanceToJobhistory();
+  }
+
+  private void sendEntranceInstanceToJobhistory() {
+    if ((Boolean) EntranceConfiguration$.MODULE$.SEND_INSTANCE().getValue()) {
+      Sender sender =
+          Sender.getSender(
+              EntranceConfiguration$.MODULE$.JOBHISTORY_SPRING_APPLICATION_NAME().getValue());
+      ServiceInstance thisServiceInstance = Sender.getThisServiceInstance();
+      logger.info(
+          "-------------------------------Start  ServiceInstance ----------: "

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: notifications-unsubscribe@linkis.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@linkis.apache.org
For additional commands, e-mail: notifications-help@linkis.apache.org