mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-17 02:20:26 +08:00
检查检查时先检查集群是否已经部署服务,如果没有部署服务,则直接跳过
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user