检查检查时先检查集群是否已经部署服务,如果没有部署服务,则直接跳过

This commit is contained in:
刘祥超
2022-11-10 12:44:12 +08:00
parent dd0e26e7bc
commit e79264eefc
3 changed files with 19 additions and 4 deletions

View File

@@ -64,11 +64,11 @@ func (this *HealthCheckClusterTask) Run() {
if this.config.Interval == nil {
return
}
duration := this.config.Interval.Duration()
var duration = this.config.Interval.Duration()
if duration <= 0 {
return
}
ticker := utils.NewTicker(duration)
var ticker = utils.NewTicker(duration)
goman.New(func() {
for ticker.Wait() {
err := this.Loop()