diff --git a/server/backtask/task/webhook.go b/server/backtask/task/webhook.go index 2f8011bf..b0733024 100644 --- a/server/backtask/task/webhook.go +++ b/server/backtask/task/webhook.go @@ -25,6 +25,7 @@ func (this* webHook) unInit() { } func (this* webHook) loadWebHookEvent(eventName string, cb func(ds *f5.DataSet) bool) { + lastOutTick := q5.GetTickCount() var lastSyncIdx = this.getLastIdx(eventName) for true { if lastSyncIdx < 0 { @@ -60,6 +61,10 @@ func (this* webHook) loadWebHookEvent(eventName string, cb func(ds *f5.DataSet) this.saveLastIdx(eventName, lastSyncIdx) } } + if q5.GetTickCount() - lastOutTick > 1000 * 15 { + lastOutTick = q5.GetTickCount() + f5.GetSysLog().Info("webhook %s last_idx:%d", eventName, lastSyncIdx) + } time.Sleep(time.Second * 3) } }