reduce amount of runs

This commit is contained in:
muskit
2023-08-28 23:29:27 -07:00
parent c81047b748
commit 4f519a9f55
2 changed files with 4 additions and 3 deletions
+1
View File
@@ -154,6 +154,7 @@ async def run(PROGRAM_ARGS):
if safe_to_post_tweets: if safe_to_post_tweets:
if await process_queue(): if await process_queue():
print("Finished processing queue") print("Finished processing queue")
return
else: else:
print('Posted no new tweets; we\'re caught up!') print('Posted no new tweets; we\'re caught up!')
return return
+2 -2
View File
@@ -11,8 +11,8 @@ def run(PROGRAM_ARGS):
while True: while True:
try: try:
asyncio.run(catchup.run(PROGRAM_ARGS)) asyncio.run(catchup.run(PROGRAM_ARGS))
print('Sleeping for 10 minutes...') print('Sleeping for 60 minutes...')
sleep(60*10) # run every 10 minutes sleep(60*60) # run every hour
except KeyboardInterrupt: except KeyboardInterrupt:
print('Interrupt signal received. Exiting listen mode.') print('Interrupt signal received. Exiting listen mode.')
print(f'errors encountered throughout session.') print(f'errors encountered throughout session.')