zhangyong vor 1 Jahr
Ursprung
Commit
1fe57eec67
1 geänderte Dateien mit 2 neuen und 1 gelöschten Zeilen
  1. 2 1
      kuaishou/kuaishou_author/kuaishou_author_scheduling_new.py

+ 2 - 1
kuaishou/kuaishou_author/kuaishou_author_scheduling_new.py

@@ -86,7 +86,8 @@ class KuaishouauthorScheduling:
         pcursor = ""
         mq = MQ(topic_name="topic_crawler_etl_" + env)
         count = 0
-        while True:
+        for i in range(5):
+        # while True:
             if count > 5:
                 return
             time.sleep(random.randint(10, 50))