Explorar el Código

定时任务测试

baishaojie hace 1 día
padre
commit
a3cacaa41e
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      http/handle/api/scheduled.go

+ 1 - 1
http/handle/api/scheduled.go

@@ -1096,7 +1096,7 @@ func processAnalysisEarlyWarning(target []string, pastureId string, serviceId in
 
 func manualUdData(pastureinfo *udPastureInfo) {
 	c := cron.New()
-	c.AddFunc("50 14 * * *", func() {
+	c.AddFunc("30 15 * * *", func() {
 		fmt.Println(time.Now(),"testtesttesttesttesttesttesttest")
 		// tx := restful.Engine.NewSession()
 		// defer tx.Close()