<#3135 [Plugin]: Add example of per model dbt exe...
# flyte-github
a
#3135 [Plugin]: Add example of per model dbt execution Issue created by brandon-segal Provide a documented example of how to do substantial orchestration of a dbt task. I was interested to see if I could replicate the logic in this proposed Airlfow DAG orchestration that orchestrates a dbt project. In the workflow they do the following: 1. Runs dbt compile to create a fresh copy of manifest.json (Where dependencies are stored) 2. Reads the model selectors defined in the YAML file 3. Uses the dbt ls command to list all of the models associated with each model selector in the YAML file 4. Turns the dbt DAG from manifest.json into a Graph object with the networkx library 5. Uses the methods available on the Graph object to figure out the correct set of dependencies for each group of models defined in the YAML file 6. Writes the dependencies for each group of models (stored as a list of tuples) to file 7. Create an Airflow DAG for each group of models based on the given dependencies 8. This DAG is then registered with their orchestrator Is this kind of logic possible using something like
@dynamic
workflows to dynamically generate the tasks during execution or through a script that generates it prior to registration? flyteorg/flyte
c