Skip to content

Commit 396b33f

Browse files
🚧 Testing listing files where I think dbt project dir is
1 parent c838266 commit 396b33f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

‎dags/kids_first/dbt_bash.py‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from datetime import datetime, timedelta
2+
from airflow.sdk import Variable
23
import os
34

45
# The DAG object; we'll need this to instantiate a DAG
@@ -44,3 +45,6 @@
4445
task_id="dbt_version",
4546
bash_command=f"{os.environ['AIRFLOW_HOME']}/dbt_venv/bin/dbt --version",
4647
)
48+
t2 = BashOperator(
49+
task_id="list_files_in_dbt_project",
50+
bash_command="ls -la " + Variable.get("DBT_PROJECT_DIR"),

0 commit comments

Comments
 (0)