Skip to content

Commit

Permalink
Merge pull request #125 from Metro-Records/feature/123-analytics-var
Browse files Browse the repository at this point in the history
Use Airflow variable for Google Drive API key in analytics DAG
  • Loading branch information
antidipyramid authored Jan 16, 2024
2 parents 9e5bf43 + b3470c5 commit e77c7f5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dags/tag_analytics.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from datetime import timedelta

from airflow import DAG
from airflow.models import Variable

from constants import (
LA_METRO_IMAGE_URL,
Expand All @@ -18,10 +19,11 @@
"execution_timeout": timedelta(minutes=10),
"image": LA_METRO_IMAGE_URL,
"environment": {
**LA_METRO_CONFIGS,
"DATABASE_URL": LA_METRO_DATABASE_URL,
"SEARCH_URL": LA_METRO_SEARCH_URL,
"SENTRY_ENVIRONMENT": ENVIRONMENT,
**LA_METRO_CONFIGS,
"GOOGLE_SERVICE_ACCT_API_KEY": Variable.get("google_service_acct_api_key")
},
}

Expand Down

0 comments on commit e77c7f5

Please sign in to comment.