From 82fc743b0999061571c37e9d3f547d1164580379 Mon Sep 17 00:00:00 2001 From: Amisha Singla Date: Fri, 16 Aug 2024 10:34:25 -0500 Subject: [PATCH] Add variable for elementary target --- airflow_variables_dev.json | 1 + airflow_variables_prod.json | 1 + dags/stellar_etl_airflow/build_elementary_slack_alert_task.py | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/airflow_variables_dev.json b/airflow_variables_dev.json index aa45eef1..c9085573 100644 --- a/airflow_variables_dev.json +++ b/airflow_variables_dev.json @@ -117,6 +117,7 @@ }, "dbt_dataset_for_test": "test", "dbt_elementary_dataset": "test_elementary", + "dbt_elementary_target": "elementary", "dbt_elementary_secret": "slack-token-elementary", "dbt_full_refresh_models": { "partnership_assets__account_holders_activity_fact": false, diff --git a/airflow_variables_prod.json b/airflow_variables_prod.json index 2264ab32..fb2de4c7 100644 --- a/airflow_variables_prod.json +++ b/airflow_variables_prod.json @@ -109,6 +109,7 @@ }, "dbt_dataset_for_test": "placeholder_value", "dbt_elementary_dataset": "elementary", + "dbt_elementary_target": "elementary", "dbt_elementary_secret": "slack-token-elementary", "dbt_full_refresh_models": { "history_assets": false, diff --git a/dags/stellar_etl_airflow/build_elementary_slack_alert_task.py b/dags/stellar_etl_airflow/build_elementary_slack_alert_task.py index abb93ebb..cbc9efbc 100644 --- a/dags/stellar_etl_airflow/build_elementary_slack_alert_task.py +++ b/dags/stellar_etl_airflow/build_elementary_slack_alert_task.py @@ -62,7 +62,7 @@ def elementary_task( env_vars={ "DBT_USE_COLORS": "0", "DBT_DATASET": "{{ var.value.dbt_elementary_dataset }}", - "DBT_TARGET": "{{ var.value.dbt_target }}", + "DBT_TARGET": "{{ var.value.dbt_elementary_target }}", "DBT_MAX_BYTES_BILLED": "{{ var.value.dbt_maximum_bytes_billed }}", "DBT_JOB_TIMEOUT": "{{ var.value.dbt_job_execution_timeout_seconds }}", "DBT_THREADS": "{{ var.value.dbt_threads }}",