Skip to content

Commit

Permalink
Only run on Mondays
Browse files Browse the repository at this point in the history
  • Loading branch information
devinmatte committed Sep 4, 2024
1 parent 675f6ee commit 7ff1e5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ingestor/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ def update_time_predictions(event):
predictions.update_predictions()


# 7:45am UTC -> 2:45/3:45am ET every day
@app.schedule(Cron(45, 7, "*", "*", "?", "*"))
# 7:45am UTC -> 2:45/3:45am ET every Monday
@app.schedule(Cron(45, 7, "*", "*", "1", "*"))
def update_alert_delays(event):
today = datetime.now()
one_week_ago = (today - timedelta(days=8)).date()
Expand Down

0 comments on commit 7ff1e5f

Please sign in to comment.