Skip to content

Commit

Permalink
revert incorrect change to scheduler
Browse files Browse the repository at this point in the history
  • Loading branch information
lunakv committed Sep 30, 2023
1 parent 81eefe6 commit 50720f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions src/utils/backup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
"""
Expand Down
4 changes: 2 additions & 2 deletions src/utils/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

0 comments on commit 50720f4

Please sign in to comment.