Henning Holgersen
02/06/2024, 8:41 PMSean Williams
02/06/2024, 9:03 PMprofiles.yml
file. If you can look at the file the blocks are creating it might point you to the parts that aren't working properly.Sean Williams
02/06/2024, 9:03 PMprofiles.yml
you can supply it, and skip blocks altogether with something like this:
from prefect_dbt.cli.commands import DbtCoreOperation
from prefect import flow
@flow
def trigger_dbt_flow() -> str:
result = DbtCoreOperation(
commands=["dbt build -t prod"],
project_dir="prefect_demo",
profiles_dir="~/.dbt"
).run()
return result
if __name__ == "__main__":
trigger_dbt_flow()
Henning Holgersen
02/06/2024, 9:14 PMSean Williams
02/06/2024, 9:36 PM