Skip to content

Commit

Permalink
Delays job runs at 5/6am
Browse files Browse the repository at this point in the history
  • Loading branch information
devinmatte committed Sep 23, 2024
1 parent 96c467f commit 9d7e158
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 @@ -121,9 +121,9 @@ def update_trip_metrics(event):
trip_metrics.ingest_recent_trip_metrics(lookback_days=7)


# 11:45am UTC -> 6:45/7:45am ET every Monday
# 10:45am UTC -> 5:45/6:45am ET every Monday
# There's no benefit to running it more frequently than once a week.
@app.schedule(Cron(45, 11, "?", "*", "MON", "*"))
@app.schedule(Cron(45, 10, "?", "*", "MON", "*"))
def update_alert_delays(event):
today = datetime.now()
one_week_ago = (today - timedelta(days=8)).date()
Expand Down

0 comments on commit 9d7e158

Please sign in to comment.