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")
|
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
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user