Skip to content

Commit

Permalink
Move LAMP code to mbta-performance repo
Browse files Browse the repository at this point in the history
  • Loading branch information
devinmatte committed Apr 8, 2024
1 parent bd8426f commit 6aec26f
Show file tree
Hide file tree
Showing 15 changed files with 1 addition and 308 deletions.
1 change: 0 additions & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
* @austinjpaul @devinmatte
ingestor/chalicelib/lamp @devinmatte @hamima-halim
1 change: 0 additions & 1 deletion devops/helpers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ function shrink {
zip -d -qq cfn/layer-deployment.zip '**/NOTICE*'
zip -d -qq cfn/layer-deployment.zip python/lib/**/site-packages/numpy*/tests/**/*
zip -d -qq cfn/layer-deployment.zip python/lib/**/site-packages/pandas*/tests/**/*
zip -d -qq cfn/layer-deployment.zip python/lib/**/site-packages/pyarrow*/tests/**/*
zip -d -qq cfn/layer-deployment.zip python/lib/**/site-packages/boto*/examples/*
zip -d -qq cfn/layer-deployment.zip python/lib/**/site-packages/boto*/data/a*/*
zip -d -qq cfn/layer-deployment.zip python/lib/**/site-packages/boto*/data/b*/*
Expand Down
5 changes: 0 additions & 5 deletions ingestor/.chalice/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,6 @@
"lambda_memory_size": 1024,
"lambda_timeout": 60,
"max_ebs_size_gb": 2
},
"process_daily_lamp": {
"iam_policy_file": "policy-lamp-ingest.json",
"lambda_timeout": 900,
"lambda_memory_size": 2048
}
}
}
Expand Down
19 changes: 0 additions & 19 deletions ingestor/.chalice/policy-lamp-ingest.json

This file was deleted.

18 changes: 0 additions & 18 deletions ingestor/.chalice/resources.json
Original file line number Diff line number Diff line change
Expand Up @@ -321,24 +321,6 @@
}
}
},
"ProcessDailyLamp": {
"Type": "AWS::Serverless::Function",
"Properties": {
"Environment": {
"Variables": {
"DD_API_KEY": {
"Ref": "DDApiKey"
},
"DD_VERSION": {
"Ref": "GitVersion"
},
"DD_TAGS": {
"Ref": "DDTags"
}
}
}
}
},
"DeliveredTripMetricsDB": {
"Type": "AWS::DynamoDB::Table",
"Properties": {
Expand Down
7 changes: 0 additions & 7 deletions ingestor/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
predictions,
landing,
trip_metrics,
lamp,
yankee,
)

Expand Down Expand Up @@ -164,9 +163,3 @@ def store_landing_data(event):
@app.schedule(Cron("0", "0-6,9-23", "*", "*", "?", "*"))
def update_yankee_shuttles(event):
yankee.update_shuttles()


# Runs every 60 minutes from either 4 AM -> 1:55AM or 5 AM -> 2:55 AM depending on DST
@app.schedule(Cron("0", "0-6,9-23", "*", "*", "?", "*"))
def process_daily_lamp(event):
lamp.ingest_lamp_data()
3 changes: 0 additions & 3 deletions ingestor/chalicelib/lamp/__init__.py

This file was deleted.

Empty file.
Empty file.
150 changes: 0 additions & 150 deletions ingestor/chalicelib/lamp/ingest.py

This file was deleted.

Empty file.
29 changes: 0 additions & 29 deletions ingestor/chalicelib/lamp/tests/test_util.py

This file was deleted.

25 changes: 0 additions & 25 deletions ingestor/chalicelib/lamp/utils.py

This file was deleted.

50 changes: 1 addition & 49 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ dynamodb-json = "^1.3"
datadog_lambda = "5.90.0"
ddtrace = "2.7.2"
tqdm = "^4.66.1"
pyarrow = "^15.0.2"

[tool.poetry.dev-dependencies]
chalice = "^1.31.0"
Expand Down

0 comments on commit 6aec26f

Please sign in to comment.