Skip to content

Commit

Permalink
temporary limit siri ride durations due to OOM problems
Browse files Browse the repository at this point in the history
  • Loading branch information
OriHoch committed Nov 25, 2024
1 parent 78e9bbe commit 1d8cb83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion open_bus_stride_etl/siri/add_ride_durations.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def main(session: Session):
stats = defaultdict(int)
query = session.query(SiriRide).filter(
SiriRide.updated_duration_minutes == None,
SiriRide.scheduled_start_time > common.now_minus(days=60)
SiriRide.scheduled_start_time > common.now_minus(days=4)
)
total_rows = query.count()
print("Total rows to update: {}".format(total_rows))
Expand Down

0 comments on commit 1d8cb83

Please sign in to comment.