https://dagster.io/ logo
#dagster-support
Title
# dagster-support
a

Alan Dao

09/09/2022, 3:48 PM
like for example i want dbt model to run after a python script is finished
o

owen

09/09/2022, 3:51 PM
hi @Alan Dao! Based on the comment that there's no ref or source associated with this python script, it sounds like the python script isn't populating a table or anything that dbt is consuming, is that right?
Is there any sort of data dependency between whatever this python asset is doing and what dbt is doing?
a

Alan Dao

09/10/2022, 12:27 AM
Can be yet and no, i just cannot find a way to define python upstream for dbt asset
o

owen

09/10/2022, 12:30 AM
https://github.com/dagster-io/dagster/issues/9575 will work if there is a data dependency
a

Alan Dao

09/10/2022, 12:42 AM
I see, so if i define say, pseudo data it still a workaround?
o

owen

09/10/2022, 12:48 AM
yes, but i believe you'll need to use that source in at least one dbt model — you can do that without changing the model's functionality by just adding a comment in the sql file that references the source (like with
—-{{source(‘my’,’source’)}}
)
a

Alan Dao

09/10/2022, 1:02 AM
@owen is the parser still work for the comment line
o

owen

09/10/2022, 1:05 AM
i'm pretty sure it does for the dependency bits (i think it worked that way for me in the past), but not 100%
a

Alan Dao

09/10/2022, 3:05 AM
@owen i just realize that all the examples are in airbyte assets load, do you have one example how to do that in python
nvm done that
5 Views