maxiaoshan 5 жил өмнө
parent
commit
8e190256d1

+ 1 - 1
tagservice/src/historytask.go

@@ -388,7 +388,7 @@ func EsHistoryData() {
 		}
 		wg.Wait()
 		client.ClearScroll().ScrollId(scrollId).Do() //清理游标
-		//time.Sleep(5 * time.Second)
+		time.Sleep(5 * time.Second)
 		log.Println("Result Data Count:", numDocs, "	Tags Data Count:", numTags)
 	} else {
 		log.Println("Es Scroll Find Error:", err)

+ 1 - 1
tagservice/src/newtask.go

@@ -462,7 +462,7 @@ func (t *Task) RunEs() {
 		}
 		t.Wg.Wait()
 		client.ClearScroll().ScrollId(scrollId).Do() //清理游标
-		//time.Sleep(5 * time.Second)
+		time.Sleep(5 * time.Second)
 		log.Println("Result Data Count:", numDocs, "	Tags Data Count:", numTags)
 		t.StartId = endId //替换id
 		setid := map[string]interface{}{