shorten catchup interval

This commit is contained in:
muskit
2024-02-10 01:25:30 -08:00
parent f038233125
commit 5636443581
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -59,7 +59,7 @@ async def get_cross_tweets_online():
print(f"Queue has {queue.get_count()} tweets so far") print(f"Queue has {queue.get_count()} tweets so far")
except KeyboardInterrupt as e: except KeyboardInterrupt as e:
print( print(
"Interrupting tweet pulling... NOTE: remaining dates in queue file will not be updated!" "Interrupting tweet pulling. The remaining dates in queue file will not be updated!"
) )
queue.save_file() queue.save_file()
raise e raise e
+4 -4
View File
@@ -11,9 +11,9 @@ 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 60 minutes...') print("Sleeping for 60 minutes...")
sleep(60*60) # run every hour sleep(60 * 30) # run every half-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.")
break break