Explorar o código

彭博检测上线

hongze %!s(int64=3) %!d(string=hai) anos
pai
achega
c014406be6
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      services/task.go

+ 3 - 3
services/task.go

@@ -123,8 +123,8 @@ func releaseTask() {
 	checkDataInterface := task.NewTask("checkDataInterface", "0 */2 * * * * ", data.CheckDataInterface)
 	task.AddTask("checkDataInterface", checkDataInterface)
 
-	//checkPbDataInterface := task.NewTask("checkPbDataInterface", "0 */5 * * * * ", data.CheckPbDataInterface)
-	//task.AddTask("checkPbDataInterface", checkPbDataInterface)
+	checkPbDataInterface := task.NewTask("checkPbDataInterface", "0 */2 * * * * ", data.CheckPbDataInterface)
+	task.AddTask("checkPbDataInterface", checkPbDataInterface)
 
 	//初始化指标更新状态
 	resetEdbInfoIsUpdate := task.NewTask("resetEdbInfoIsUpdate", "0 0 0 * * *", data.ResetEdbInfoIsUpdate)
@@ -168,7 +168,7 @@ func RefreshData(cont context.Context) (err error) {
 	//同花顺
 	go data.RefreshDataFromThs(&wg)
 	//彭博
-	//go data.RefreshDataFromPb(&wg)
+	go data.RefreshDataFromPb(&wg)
 	//手工数据
 	go data.RefreshDataFromManual(&wg)
 	//隆众数据