Skip to content

Commit ac8508f

Browse files
committed
fix nouvelle cmd pas utilisée
1 parent df62915 commit ac8508f

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

dags/enrich/dags/enrich_dbt_models_refresh.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@
88
from airflow import DAG
99
from airflow.models.baseoperator import chain
1010
from airflow.operators.bash import BashOperator
11-
from enrich.config import (
12-
EnrichDbtModelsRefreshConfig,
13-
)
11+
from enrich.config import EnrichDbtModelsRefreshConfig
1412
from shared.config import CATCHUPS, SCHEDULES, START_DATES, config_to_airflow_params
1513

1614
with DAG(
@@ -43,16 +41,16 @@
4341
),
4442
) as dag:
4543
tasks = []
46-
for command in dag.params.get("dbt_models_refresh_commands", []):
47-
cmd = command.strip()
44+
for cmd in dag.params.get("dbt_models_refresh_commands", []):
45+
cmd = cmd.strip()
4846
if not cmd:
4947
continue
5048
cmd_id = re.sub(r"__+", "_", re.sub(r"[^a-zA-Z0-9]+", "_", cmd))
5149
cmd += " --debug --threads 1"
5250
tasks.append(
5351
BashOperator(
5452
task_id=f"enrich_{cmd_id}",
55-
bash_command=command,
53+
bash_command=cmd,
5654
)
5755
)
5856
chain(*tasks)

0 commit comments

Comments
 (0)