From 8e163e26cf483781acbe037f5b96da3e67482e0d Mon Sep 17 00:00:00 2001 From: muskit <15199219+muskit@users.noreply.github.com> Date: Fri, 26 Apr 2024 00:14:46 -0700 Subject: [PATCH] extend wait to try and avoid revocation (didnt work) --- src/catchup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/catchup.py b/src/catchup.py index 45f5467..6c74739 100644 --- a/src/catchup.py +++ b/src/catchup.py @@ -88,7 +88,7 @@ async def process_queue() -> bool: queued_ttweets_count = queue.get_count() - WAIT_TIME = 60 * 15 + WAIT_TIME = 60 * 30 # 30 minutes ttweets_posted = 0 if queued_ttweets_count == 0: @@ -111,7 +111,7 @@ async def process_queue() -> bool: ttweets_posted += 1 print(f"({ttweets_posted}/{queued_ttweets_count}) done") if not queue.is_empty(): - print(f"resting for {WAIT_TIME}s...") + print(f"resting for {WAIT_TIME/60} minutes...") await asyncio.sleep(WAIT_TIME - 5) print("5 second warning!") await asyncio.sleep(5)