adjust interval to every 5 minutes as a baseline

This commit is contained in:
雲華
2021-08-17 20:02:37 -04:00
parent aaea16ab99
commit af948965b0

View File

@@ -56,9 +56,9 @@ def run_async(coroutine):
loop.run_until_complete(task) loop.run_until_complete(task)
schedule.every().hour.do(run_async, publish_news) schedule.every(5).minutes.do(run_async, publish_news)
while True: while True:
logging.debug('Checking schedule...') logging.debug('Checking schedule...')
schedule.run_pending() schedule.run_pending()
time.sleep(300) time.sleep(1)