extend wait to try and avoid revocation (didnt work)

This commit is contained in:
muskit
2024-04-26 00:14:46 -07:00
parent f035896226
commit 8e163e26cf
+2 -2
View File
@@ -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)