Sfoglia il codice sorgente

新框架 bug 暂停

罗俊辉 1 anno fa
parent
commit
afd9ac1212
1 ha cambiato i file con 7 aggiunte e 7 eliminazioni
  1. 7 7
      app/main.py

+ 7 - 7
app/main.py

@@ -84,13 +84,13 @@ async def main():
     主函数
     主函数
     """
     """
     spider_list = TopicGroup().produce()
     spider_list = TopicGroup().produce()
-    while spider_list:
-        async_tasks = []
-        for spider in spider_list:
-            task = asyncio.create_task(consume_single_message(spider))
-            async_tasks.append(task)
-        await asyncio.gather(*async_tasks)
-        await asyncio.sleep(60)  # 每分钟接收一次MQ,
+    # while spider_list:
+    #     async_tasks = []
+    #     for spider in spider_list:
+    #         task = asyncio.create_task(consume_single_message(spider))
+    #         async_tasks.append(task)
+    #     await asyncio.gather(*async_tasks)
+    #     await asyncio.sleep(60)  # 每分钟接收一次MQ,
 
 
 
 
 if __name__ == "__main__":
 if __name__ == "__main__":