We're starting work on building out our Prefect in...
# prefect-getting-started
e
We're starting work on building out our Prefect instance, and have been debating internally on how to manage to organize/structure/run our jobs that span multiple repos & images. Right now have the following repos: • Prefect (just some simple flows so far) • DBT • App What we could use some advice on is how to tie all of these together. Both DBT and App have Docker images they run on. Our simple user case is to run a DBT flow and then [once done] run an App flow. For those two Repos, I think the right move is deploy both of those flows/images separately, and then call each separately like this?
Copy code
@flow
def my_flow():
    run_deployment(name="dbt-flow", as_subflow=False)
    run_deployment(name="app-flow", as_subflow=False)
āœ… 1
k
I think this is the lowest friction way to do it, yeah. It's also possible to have just the dbt deployment have a schedule, and make an automation (prefect cloud only) that runs your app deployment once it completes
šŸ‘šŸ» 1
e
Cool, makes sense! Thanks Kevin
m
Hello Eric. How did you run your dbt flow? Does it run from the dbt_project.yml? I'm having trouble deploying dbt locally
e
m
Thanks Eric. I tried following that guy, sounds simple enough, right? But i get stuck with a runtime error " RuntimeError: PID 22088 failed with return code 1. "
Nevermind, I swap to prefect-dbt-flow and its working now!