Browse Source

快手优化

zhangyong 1 year ago
parent
commit
1fe57eec67
1 changed files with 2 additions and 1 deletions
  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))