Skip to content

Commit b002795

Browse files
dbt project updates
1 parent 09516df commit b002795

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

  • macro_agents/src/macro_agents/defs/transformation

macro_agents/src/macro_agents/defs/transformation/dbt.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)