From 50720f4e62b66db388c976fa781d8c12f43f923b Mon Sep 17 00:00:00 2001 From: Vaclav Lunak Date: Sat, 30 Sep 2023 18:34:52 +0200 Subject: [PATCH] revert incorrect change to scheduler --- src/utils/backup.py | 3 --- src/utils/scheduler.py | 4 ++-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/utils/backup.py b/src/utils/backup.py index 510525c..dc980a5 100644 --- a/src/utils/backup.py +++ b/src/utils/backup.py @@ -4,14 +4,11 @@ import boto3 from botocore.config import Config from botocore.exceptions import ClientError -from dotenv import load_dotenv from resources import static_paths as paths from utils import notifier from utils.logger import logger -load_dotenv() - class Backup: """ diff --git a/src/utils/scheduler.py b/src/utils/scheduler.py index b067c61..181b3bd 100644 --- a/src/utils/scheduler.py +++ b/src/utils/scheduler.py @@ -15,7 +15,7 @@ def __init__(self): def start(self): self.scheduler.start() - self.scheduler.add_job(scrape_rules_page, "interval", minutes=1, coalesce=True) - self.scheduler.add_job(scrape_docs_page, "interval", minutes=1, coalesce=True) + self.scheduler.add_job(scrape_rules_page, "interval", hours=1, coalesce=True) + self.scheduler.add_job(scrape_docs_page, "interval", hours=1, coalesce=True) self.scheduler.add_job(run_backup, "interval", weeks=2, coalesce=True) logger.info("Started periodic scrape job")