Skip to content

Commit 5bb1d78

Browse files
committed
update README
1 parent d0a9452 commit 5bb1d78

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

functions-python/tasks_executor/src/tasks/validation_reports/README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,9 @@ Example:
1919
"filter_after_in_days": 14,
2020
"filter_statuses": ["active", "inactive", "future"]
2121
}
22-
`````
22+
`````
23+
24+
# GCP environment variables
25+
The function uses the following environment variables:
26+
- `ENV`: The environment to use. It can be `dev`, `staging` or `prod`. Default is `dev`.
27+
- `LOCATION`: The location of the GCP project. Default is `northamerica-northeast1`.

functions-python/tasks_executor/src/tasks/validation_reports/rebuild_missing_validation_reports.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def get_parameters(payload):
141141
Returns:
142142
dict: dict with: dry_run, filter_after_in_days, filter_statuses, prod_env, validator_endpoint parameters
143143
"""
144-
prod_env = os.getenv("ENVIRONMENT", "").lower() == "prod"
144+
prod_env = os.getenv("ENV", "").lower() == "prod"
145145
validator_endpoint = get_gtfs_validator_url(prod_env)
146146
dry_run = payload.get("dry_run")
147147
filter_after_in_days = payload.get("filter_after_in_days")

0 commit comments

Comments
 (0)