From e6dda6ae7619cb224e9d2e3defc32038b0e43c5c Mon Sep 17 00:00:00 2001 From: Bruno Antonellini Date: Fri, 23 Feb 2024 09:07:44 -0800 Subject: [PATCH] Airflow Variable usage example --- .../dags/{variables_and_connections.py => variables.py} | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename orchestrate/dags/{variables_and_connections.py => variables.py} (86%) diff --git a/orchestrate/dags/variables_and_connections.py b/orchestrate/dags/variables.py similarity index 86% rename from orchestrate/dags/variables_and_connections.py rename to orchestrate/dags/variables.py index 7c9821fd..1b779064 100644 --- a/orchestrate/dags/variables_and_connections.py +++ b/orchestrate/dags/variables.py @@ -9,13 +9,13 @@ default_args={"start_date": "2021-01"}, description="Loan Run", schedule_interval="0 0 1 */12 *", - tags=["version_5"], + tags=["version_1"], catchup=False, ) -def daily_loan_run(): +def variables_dag(): transform = DatacovesDbtOperator( task_id="transform", bash_command=f"dbt build -s 'tag:{daily_run_tag}'", ) -dag = daily_loan_run() +dag = variables_dag()