From a3885024db00beed201d28bfd0deb451be7308e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20Honorez?= Date: Tue, 2 Jan 2024 10:10:12 +0100 Subject: [PATCH] waiting 5 minutes --- Post_RSS_on_SubStack.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Post_RSS_on_SubStack.py b/Post_RSS_on_SubStack.py index 93413e6..8a5cce2 100644 --- a/Post_RSS_on_SubStack.py +++ b/Post_RSS_on_SubStack.py @@ -85,8 +85,7 @@ class SubStackTask: LOG.info(f"Waiting for {sleep_seconds} seconds for next scan") # Wait for some time before checking again - # Here, we choose to wait for less than an hour (e.g., 59 minutes) to ensure we hit the hourly mark - await asyncio.sleep(min(sleep_seconds, 59 * 60)) + await asyncio.sleep(min(sleep_seconds, 5 * 60)) # Recalculate the remaining sleep time now = datetime.datetime.now()