SuperCarrys commented on issue #2229:
URL: 
https://github.com/apache/shardingsphere-elasticjob/issues/2229#issuecomment-1584286728

   `   /**
        * 持久化作业服务器上线信息.
        * 
        * @param enabled 作业是否启用
        */
       public void persistOnline(final boolean enabled) {
          
    if (!JobRegistry.getInstance().isShutdown(jobName)) {
   
   //           
jobNodeStorage.fillJobNode(serverNode.getServerNode(JobRegistry.getInstance().getJobInstance(jobName).getIp()),
 enabled ? "" : ServerStatus.DISABLED.name());
               
   //改为临时节点
               
jobNodeStorage.fillEphemeralJobNode(serverNode.getServerNode(JobRegistry.getInstance().getJobInstance(jobName).getIp()),
 enabled ? "" : ServerStatus.DISABLED.name());
           }
       }
       `


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