Leverage existing integration work from the community
sungchun12 opened this issue · comments
Leverage existing work based on git repo: here
I haven't taken a thorough look, but glad to know someone's already thinking about this!
@AlessandroLollo can you provide context on your approach and what you think is best to be reused for this official integration vs. not?
Hey @sungchun12 👋
The original integration between Prefect and dbt Cloud was introduced in Prefect 1.0.
Here you can find the task.
Then, I decided to implement the same feature for Prefect 2.0.
At its core, the task is basically a wrapper around the run job API available in dbt Cloud.
The task offers some convenient features, i.e: specifying a custom domain, or waiting for the job run to complete.
The run_job
task is pretty stable and I think it can be used as-is.
I've also started working on a new task create_job
which should make it even easier to create a new dbt Cloud job.
I did not fully tested it in a real use case though.
Hey!
Thanks a bunch for adding context here. @desertaxle I recommend reading through the above and porting over code where appropriate. Hopefully, this will save everyone time so we don't have reinvent the wheel where we don't have to.