Explorar o código

新框架 bug 暂停

罗俊辉 hai 1 ano
pai
achega
d0512fe46f
Modificáronse 1 ficheiros con 3 adicións e 2 borrados
  1. 3 2
      app/main.py

+ 3 - 2
app/main.py

@@ -86,8 +86,9 @@ async def main():
     """
     """
     spider_list = TopicGroup().produce()
     spider_list = TopicGroup().produce()
     while spider_list:
     while spider_list:
-        tasks = [consume_single_message(spider) for spider in spider_list]
-        await asyncio.gather(*tasks)
+        print(spider_list)
+        # tasks = [consume_single_message(spider) for spider in spider_list]
+        # await asyncio.gather(*tasks)
         await asyncio.sleep(60)
         await asyncio.sleep(60)