Hi friends,
I have separate git repos for dbt and prefect. Iād like to start using prefect to schedule dbt runs but trying to understand how best to do that. Should I just make prefect first do a
git clone
of the dbt repo?
Currently just using dbt cloud to run on a schedule but thinking of moving away from that towards the above solution.
k
Kevin Grismore
10/31/2022, 1:53 PM
I added a prefect flow to my dbt repo that uses prefect-dbt tasks and blocks, with the github storage block so it gets cloned at flow run time. That way when the flow runs, it can point to dbt projects that are in adjacent folders.
a
Anna Geller
10/31/2022, 2:14 PM
you can use the GitHub block for it
Anna Geller
10/31/2022, 2:14 PM
a blog post about it is on my radar, and will be out in 1-2 weeks
š 2
a
Adam
10/31/2022, 3:51 PM
Thank you both
š 1
b
Ben Doremus
11/04/2022, 7:23 PM
Git submodules suck to deal with, but can work.
šÆ 1
gratitude thank you 1
m
Matthew Ferry
12/07/2022, 12:53 PM
Hi @Anna Geller! Did this blog post come out? I'm dealing with the same question and it's not clear to me exactly what (agent? Orion API? flow container?) gets access to the storage block.
Would love to read more to better understand.
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.