rectalogic
03/29/2023, 8:22 PMGit
Storage clones the repo into a temporary directory, loads the flow_path
specified then deletes the git repo. We have an entire dbt subdirectory and want to run DbtShellTask
against it - but it is gone when our flow runs since prefect deletes the git repo.
I see in some examples they clone a separate dbt repo at flow run time. We would rather not do that, but is that the only workaround?
https://github.com/PrefectHQ/prefect/blob/1.4.1/src/prefect/storage/git.py#L148
https://www.prefect.io/guide/blog/flow-of-flows-orchestrating-elt-with-prefect-and-dbt/