File tree Expand file tree Collapse file tree
macro_agents/src/macro_agents/defs/transformation Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -49,10 +49,14 @@ def get_automation_condition(
4949 repo_root = current_file .parent .parent .parent .parent .parent
5050
5151 # The dbt_project should be at the repo root
52+ # But in Dagster Cloud, it's copied into the working directory (macro_agents)
53+ # Check working directory first since that's where it will be in deployment
5254 possible_dbt_project_paths = [
53- repo_root / "dbt_project" ,
54- # Also check relative to working directory (for local dev)
55+ # First check working directory (for Dagster Cloud with copied dbt_project)
5556 Path .cwd () / "dbt_project" ,
57+ # Then check repo root (for local dev)
58+ repo_root / "dbt_project" ,
59+ # Also check parent of working directory
5660 Path .cwd ().parent / "dbt_project" ,
5761 ]
5862
You can’t perform that action at this time.
0 commit comments