This is an automated email from the ASF dual-hosted git repository.

zhongxjian pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo-kubernetes.git


The following commit(s) were added to refs/heads/master by this push:
     new a6526533 [horus] Redefining the reboot strategy (#408)
a6526533 is described below

commit a65265335578e21e5ea22696a2330f8a6604a098
Author: mfordjody <[email protected]>
AuthorDate: Tue Oct 1 09:39:07 2024 +0800

    [horus] Redefining the reboot strategy (#408)
---
 app/horus/core/horuser/node_restart.go | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/app/horus/core/horuser/node_restart.go 
b/app/horus/core/horuser/node_restart.go
index 141779bf..b398eca6 100644
--- a/app/horus/core/horuser/node_restart.go
+++ b/app/horus/core/horuser/node_restart.go
@@ -23,7 +23,6 @@ import (
        "github.com/gammazero/workerpool"
        "k8s.io/apimachinery/pkg/util/wait"
        "k8s.io/klog/v2"
-       "syscall"
        "time"
 )
 
@@ -67,6 +66,6 @@ func (h *Horuser) TryRestart(node db.NodeDataInfo) {
        if pass {
                msg := fmt.Sprintf("【等待腾空节点后重启就绪】【节点:%v】【日期:%v】【集群:%v】", 
node.NodeName, node.FirstDate, node.ClusterName)
                alert.DingTalkSend(h.cc.NodeDownTime.DingTalk, msg)
-               defer syscall.Reboot(syscall.LINUX_REBOOT_CMD_RESTART)
+               // TODO restart policy
        }
 }

Reply via email to