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")