From af948965b027b66e2bff623691670860311cdd0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=B2=E8=8F=AF?= <42814579+yunwah@users.noreply.github.com> Date: Tue, 17 Aug 2021 20:02:37 -0400 Subject: [PATCH] adjust interval to every 5 minutes as a baseline --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 065f060..ec36422 100644 --- a/main.py +++ b/main.py @@ -56,9 +56,9 @@ def run_async(coroutine): loop.run_until_complete(task) -schedule.every().hour.do(run_async, publish_news) +schedule.every(5).minutes.do(run_async, publish_news) while True: logging.debug('Checking schedule...') schedule.run_pending() - time.sleep(300) + time.sleep(1)