Neha Chopra
12/05/2022, 10:59 PMdbt = DbtShellTask(
return_all=True,
profile_name="dbt_repo",
environment="dev",
# profiles_dir=".",
overwrite_profiles=True,
helper_script=f"cd {DBT_DIR}",
log_stdout=True,
log_stderr=True,
dbt_kwargs={ # removed for readability}
)(command="dbt docs generate")
The folder structure is like:
prefect-repo
|- containers
|- dbt-prefect-container
|-dbt-repo(submodule)
|- flows
|-flow.py (from where I want to access the location DBT_DIR)
My questions are:
1. Is it okay to use git submodule method inside Prefect?
2. How to pass correct repo location so that Prefect cloud doesn't start the root at local dir: /Users/my-usernameMason Menges
12/06/2022, 5:27 PMBring 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.
Powered by