Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
Ramshackle-Jamathon committed Sep 19, 2023
1 parent 3e7a7e9 commit b57c21a
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions purina_usage/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,16 @@

# If DAGSTER_DBT_PARSE_PROJECT_ON_LOAD is set, a manifest will be created at run time.
# Otherwise, we expect a manifest to be present in the project's target directory.
if os.getenv("DAGSTER_DBT_PARSE_PROJECT_ON_LOAD"):
dbt_parse_invocation = dbt.cli(["parse"]).wait()
dbt_manifest_path = dbt_parse_invocation.target_path.joinpath("manifest.json")
else:
dbt_manifest_path = dbt_project_dir.joinpath("target", "manifest.json")
# if os.getenv("DAGSTER_DBT_PARSE_PROJECT_ON_LOAD"):
# dbt_parse_invocation = dbt.cli(["parse"]).wait()
# dbt_manifest_path = dbt_parse_invocation.target_path.joinpath("manifest.json")
# else:
# dbt_manifest_path = dbt_project_dir.joinpath("target", "manifest.json")


dbt_parse_invocation = dbt.cli(["parse"]).wait()
dbt_manifest_path = dbt_parse_invocation.target_path.joinpath("manifest.json")

# class CustomDagsterDbtTranslator(DagsterDbtTranslator):
# @classmethod
# def get_group_name(cls, _unused):
Expand Down

0 comments on commit b57c21a

Please sign in to comment.