How to achieve that dbt assets depends on python assets? #18662
-
As long as I have been working on dbt on Dagster I always have faced problems where the dbt assets where loaded the first ones in the DAG and then the python assets ones were loaded. For example, an structure like this:
The problem is that I want to do something the other way; I firstly want to create some assets with Python and only then, when these assets are created, execute the dbt models. What I would want to know if there is anything similar as the deps option from the Thanks in advanced |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
If you model your upstream dependencies as dbt sources, you can create assets for your dbt sources. These assets will execute before your dbt assets. See the docs for details: https://docs.dagster.io/integrations/dbt/reference#upstream-dependencies |
Beta Was this translation helpful? Give feedback.
-
@jordunar were you able to find a solution? |
Beta Was this translation helpful? Give feedback.
If you model your upstream dependencies as dbt sources, you can create assets for your dbt sources. These assets will execute before your dbt assets.
See the docs for details: https://docs.dagster.io/integrations/dbt/reference#upstream-dependencies