Skip to content

Commit

Permalink
[horus] Completion of self-healing function test completed (#443)
Browse files Browse the repository at this point in the history
  • Loading branch information
mfordjody authored Oct 9, 2024
1 parent def734b commit 156e5fa
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions app/horus/cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,13 @@ func main() {
return nil
})
group.Add(func() error {
klog.Info("horus node downtime restart manager start success.")
err := horus.DowntimeRestartManager(ctx)
if err != nil {
klog.Errorf("horus node downtime restart manager start failed err:%v", err)
return err
if c.NodeDownTime.Enabled {
klog.Info("horus node downtime restart manager start success.")
err := horus.DowntimeRestartManager(ctx)
if err != nil {
klog.Errorf("horus node downtime restart manager start failed err:%v", err)
return err
}
}
return nil
})
Expand Down

0 comments on commit 156e5fa

Please sign in to comment.