Browse Source

特殊处理

xyxie 1 year ago
parent
commit
74d38f5591
1 changed files with 5 additions and 0 deletions
  1. 5 0
      services/data_stat/edb_info_stat.go

+ 5 - 0
services/data_stat/edb_info_stat.go

@@ -5,10 +5,15 @@ import (
 	"errors"
 	"eta/eta_task/services/data"
 	"eta/eta_task/utils"
+	"time"
 )
 
 // SetEdbSourceStatTask 设置数据源指标更新情况定时任务
 func SetEdbSourceStatTask(cont context.Context) (err error) {
+	now := time.Now().Format(utils.FormatDate)
+	if now <= "2023-12-04" { //上线之后隔天再执行
+		return
+	}
 	utils.FileLog.Info("SetEdbSourceStatTask 开始")
 	resp, err := data.SetEdbSourceStat()
 	if err != nil {