From f6a2fc2f0b3e4a3823c8778254ba60161e8cb212 Mon Sep 17 00:00:00 2001 From: Frisk Date: Tue, 16 Mar 2021 23:10:47 +0100 Subject: [PATCH] Not very helpful really, reverting previous commit to find better alternative --- src/bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bot.py b/src/bot.py index 21262fe..a4a70a6 100644 --- a/src/bot.py +++ b/src/bot.py @@ -347,7 +347,7 @@ async def scan_group(group: str): except asyncio.CancelledError: return except QueueEmpty: - await asyncio.sleep(21.0) + await asyncio.sleep(10.0) continue @@ -358,7 +358,7 @@ async def wiki_scanner(): async for group, db_wikis in generate_domain_groups(): # First scan await rcqueue.start_group(group, db_wikis) while True: - await asyncio.sleep(19.0) + await asyncio.sleep(20.0) await rcqueue.update_queues() except asyncio.CancelledError: for item in rcqueue.domain_list.values(): # cancel running tasks