Skip to content

Commit

Permalink
Remove DAGSTER_DBT_PARSE_PROJECT_ON_LOAD support
Browse files Browse the repository at this point in the history
  • Loading branch information
maximearmstrong committed Jun 21, 2024
1 parent 3f07ad4 commit 219556c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ class DbtProjectPreparer:
@public
def prepare_if_dev(self, project: "DbtProject") -> None:
"""Invoked in the `prepare_if_dev` method of DbtProject,
when DbtProject needs preparation during development."""
when DbtProject needs preparation during development.
"""

@public
def prepare(self, project: "DbtProject") -> None:
Expand All @@ -44,11 +45,6 @@ def using_dagster_dev(self) -> bool:
"""Returns true if Dagster is running using the `dagster dev` command."""
return using_dagster_dev()

@public
def parse_on_load_opt_in(self) -> bool:
"""Returns true if the environment variable "DAGSTER_DBT_PARSE_PROJECT_ON_LOAD" is set and true."""
return bool(os.getenv("DAGSTER_DBT_PARSE_PROJECT_ON_LOAD"))


@experimental
class DagsterDbtProjectPreparer(DbtProjectPreparer):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
from dagster._utils.test import copy_directory
from dagster_dbt.dbt_manifest import validate_manifest
from dagster_dbt.dbt_project import DbtProject
from dagster_dbt.errors import DagsterDbtManifestNotFoundError

from ..dbt_projects import test_jaffle_shop_path

Expand Down

0 comments on commit 219556c

Please sign in to comment.