You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@linkis.apache.org by "peacewong (via GitHub)" <gi...@apache.org> on 2023/03/06 12:59:38 UTC

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

peacewong commented on code in PR #4321:
URL: https://github.com/apache/linkis/pull/4321#discussion_r1126378104


##########
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:
   Clean up Entrance dirty data



##########
linkis-computation-governance/linkis-entrance/src/main/scala/org/apache/linkis/entrance/conf/EntranceConfiguration.scala:
##########
@@ -225,4 +220,7 @@ object EntranceConfiguration {
   val CREATOR_IP_SWITCH =
     CommonVars("wds.linkis.entrance.user.creator.ip.interceptor.switch", false)
 
+  val SEND_INSTANCE =

Review Comment:
   rename to ENABLE_ENTRANCE_DIRTY_DATA_CLEAR  and linkis.entrance.auto.clean.dirty.data.enable



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