Skip to content

Commit

Permalink
pass args
Browse files Browse the repository at this point in the history
  • Loading branch information
amishas157 committed Oct 2, 2024
1 parent f14ef22 commit 430a539
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions dags/dbt_source_data_freshness_test_dag.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
dag,
command_type="source",
sub_command="freshness",
cmd_args=["source:crypto_stellar.*", "source:crypto_stellar_internal_2.*"],
flag=None,
tag=None,
resource_cfg="dbt",
Expand Down
4 changes: 4 additions & 0 deletions dags/stellar_etl_airflow/build_dbt_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ def dbt_task(
tag=None,
flag="select",
operator="",
cmd_args=[],
command_type="build",
excluded=None,
resource_cfg="default",
Expand Down Expand Up @@ -95,6 +96,9 @@ def dbt_task(
if flag:
args.append(f"--{flag}")

if len(cmd_args):
args = [*args, *cmd_args]

models = []
if tag:
task_name = tag
Expand Down

0 comments on commit 430a539

Please sign in to comment.