Skip to content

Commit

Permalink
Updating timeouts, mem and costs
Browse files Browse the repository at this point in the history
  • Loading branch information
devinmatte committed Feb 26, 2025
1 parent f27e06c commit 4b75d03
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
15 changes: 8 additions & 7 deletions ingestor/.chalice/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"store_current_alerts": {
"iam_policy_file": "policy-alerts.json",
"lambda_memory_size": 256,
"lambda_timeout": 90
"lambda_timeout": 30
},
"store_new_train_runs": {
"iam_policy_file": "policy-newtrains.json"
Expand All @@ -35,6 +35,7 @@
},
"bb_store_station_info": {
"iam_policy_file": "policy-bluebikes-store.json",
"lambda_memory_size": 192,
"lambda_timeout": 90
},
"bb_calc_daily_stats": {
Expand All @@ -44,7 +45,7 @@
},
"store_landing_data": {
"iam_policy_file": "policy-landing-data.json",
"lambda_timeout": 90,
"lambda_timeout": 60,
"lambda_memory_size": 192
},
"update_daily_speed_table": {
Expand Down Expand Up @@ -90,20 +91,20 @@
},
"update_gtfs": {
"iam_policy_file": "policy-gtfs.json",
"lambda_timeout": 900,
"lambda_memory_size": 10240,
"lambda_timeout": 500,
"lambda_memory_size": 768,
"max_ebs_size_gb": 10
},
"update_ridership": {
"iam_policy_file": "policy-ridership.json",
"lambda_timeout": 900,
"lambda_memory_size": 512,
"lambda_timeout": 500,
"lambda_memory_size": 384,
"max_ebs_size_gb": 2
},
"update_speed_restrictions": {
"iam_policy_file": "policy-speed-restrictions.json",
"lambda_memory_size": 256,
"lambda_timeout": 300
"lambda_timeout": 90
},
"update_alert_delays": {
"iam_policy_file": "policy-alert-delays.json",
Expand Down
3 changes: 2 additions & 1 deletion ingestor/chalicelib/daily_speeds.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from datetime import date, timedelta, datetime
from decimal import Decimal
import json
from typing import List
from urllib.parse import urlencode
from chalicelib import dynamo, constants
import requests
Expand All @@ -14,7 +15,7 @@ def is_valid_entry(item, expected_entries, date):
return True


def get_agg_tt_api_requests(stops, current_date, delta):
def get_agg_tt_api_requests(stops: List[List[str, str]], current_date: date, delta: timedelta):
"""Create API requests from parameters"""
api_requests = []
for stop_pair in stops:
Expand Down

0 comments on commit 4b75d03

Please sign in to comment.