shorten catchup interval
This commit is contained in:
+1
-1
@@ -59,7 +59,7 @@ async def get_cross_tweets_online():
|
||||
print(f"Queue has {queue.get_count()} tweets so far")
|
||||
except KeyboardInterrupt as e:
|
||||
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()
|
||||
raise e
|
||||
|
||||
+4
-4
@@ -11,9 +11,9 @@ def run(PROGRAM_ARGS):
|
||||
while True:
|
||||
try:
|
||||
asyncio.run(catchup.run(PROGRAM_ARGS))
|
||||
print('Sleeping for 60 minutes...')
|
||||
sleep(60*60) # run every hour
|
||||
print("Sleeping for 60 minutes...")
|
||||
sleep(60 * 30) # run every half-hour
|
||||
except KeyboardInterrupt:
|
||||
print('Interrupt signal received. Exiting listen mode.')
|
||||
print(f'errors encountered throughout session.')
|
||||
print("Interrupt signal received. Exiting listen mode.")
|
||||
print(f"errors encountered throughout session.")
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user