Skip to content

Commit e106fc0

Browse files
committed
fix typo sur dbt_models_refresh_command
1 parent c7d10d8 commit e106fc0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

dags/enrich/tasks/airflow_logic/enrich_dbt_models_refresh_task.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
from airflow.operators.bash import BashOperator
88
from airflow.operators.python import PythonOperator
99
from enrich.config import TASKS, XCOMS, xcom_pull
10+
from enrich.config.models import EnrichBaseConfig
1011

1112
logger = logging.getLogger(__name__)
1213

@@ -27,7 +28,7 @@ def task_info_get(dbt_model_refresh_command: str):
2728
def enrich_dbt_models_refresh_wrapper(ti) -> None:
2829

2930
# Config
30-
config = xcom_pull(ti, XCOMS.CONFIG)
31+
config: EnrichBaseConfig = xcom_pull(ti, XCOMS.CONFIG)
3132

3233
logger.info(task_info_get(config.dbt_models_refresh_command))
3334
logger.info(f"📖 Configuration:\n{config.model_dump_json(indent=2)}")
@@ -40,7 +41,7 @@ def enrich_dbt_models_refresh_wrapper(ti) -> None:
4041
)
4142
bash = BashOperator(
4243
task_id=TASKS.ENRICH_DBT_MODELS_REFRESH + "_bash",
43-
bash_command=config.dbt_build_command,
44+
bash_command=config.dbt_models_refresh_command,
4445
)
4546
bash.execute(context=ti.get_template_context())
4647

0 commit comments

Comments
 (0)