maxiaoshan 5 yıl önce
ebeveyn
işleme
8e190256d1
2 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 1 1
      tagservice/src/historytask.go
  2. 1 1
      tagservice/src/newtask.go

+ 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{}{