Skip to content

Commit

Permalink
Fixing Delay data to also run on Tuesdays
Browse files Browse the repository at this point in the history
  • Loading branch information
devinmatte committed Sep 30, 2024
1 parent b652bf5 commit a4b8873
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)


# 8:30am UTC -> 3:30/4:30am ET every Monday and Wednesday
# 8:30am UTC -> 3:30/4:30am ET every Monday and Tuesday
# There's shouldn't be any benefit to running it more frequently.
@app.schedule(Cron(30, 8, "?", "*", "MON,WED", "*"))
@app.schedule(Cron(30, 8, "?", "*", "MON,TUE", "*"))
def update_alert_delays(event):
today = datetime.now()
one_week_ago = (today - timedelta(days=15)).date()
Expand Down

0 comments on commit a4b8873

Please sign in to comment.