Skip to content

Commit

Permalink
Update DbtProject
Browse files Browse the repository at this point in the history
  • Loading branch information
maximearmstrong committed Jun 21, 2024
1 parent 6367e7d commit 5a340f2
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def using_dagster_dev() -> bool:
class DbtManifestPreparer:
"""A dbt manifest represented by DbtProject."""

def ensure_prepared(self, project: "DbtProject") -> None:
def on_load(self, project: "DbtProject") -> None:
"""Invoked when DbtProject is instantiated with this preparer."""

def prepare(self, project: "DbtProject") -> None:
Expand Down Expand Up @@ -55,7 +55,7 @@ def __init__(
"""
self._generate_cli_args = generate_cli_args or ["parse", "--quiet"]

def ensure_prepared(self, project: "DbtProject"):
def on_load(self, project: "DbtProject"):
if self.using_dagster_dev() or self.parse_on_load_opt_in():
self.prepare(project)
if not project.manifest_path.exists():
Expand Down Expand Up @@ -197,7 +197,7 @@ def __new__(
if not using_dagster_dev() and packaged_project_dir and packaged_project_dir.exists():
project_dir = packaged_project_dir

manifest_preparer = DagsterDbtManifestPreparer()
preparer = DagsterDbtManifestPreparer()

manifest_path = project_dir.joinpath(target_path, "manifest.json")

Expand Down

0 comments on commit 5a340f2

Please sign in to comment.