[Feature] Invoking macro directly from a DAG file #1243
Labels
area:rendering
Related to rendering, like Jinja, Airflow tasks, etc
dbt:run-operation
Primarily related to dbt run-operation command or functionality
enhancement
New feature or request
triage-needed
Items need to be reviewed / assigned to milestone
Description
I am trying to invoke a macro directly from the DAG file as a task rather than being invoked from any of the model. Below is the code, I am using which is not working as expected, please help on this,
The code does not rendering any of the macros, but without render_config, it selects all the models and snapshots. So, the problem is that, its not picking up any macros from
macros
folder, which holds upto 7-8 macros in it.Use case/motivation
The code should pick up the all or specific macro and execute it successfully from the DAG file, rather than invoking from any of the models. All the macros runs perfectly outside of airflow using the command
dbt run-operation macro_name
Related issues
No response
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: