Skip to content

Commit

Permalink
change dbt target resolution (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
alangenfeld authored Aug 8, 2024
1 parent 41db1ae commit 6b1dfd0
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions hooli-demo-assets/hooli_demo_assets/resources/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@


def get_env():
if os.getenv("DAGSTER_CLOUD_IS_BRANCH_DEPLOYMENT", "") == "1":
return "BRANCH"
if os.getenv("DAGSTER_CLOUD_DEPLOYMENT_NAME", "") == "data-eng-prod":
return "PROD"
return "LOCAL"
if os.getenv("DAGSTER_CLOUD_DEPLOYMENT_NAME", "") == "data-eng-prod":
return "PROD"
if os.getenv("DAGSTER_IS_DEV_CLI"):
return "LOCAL"
# default to BRANCH so we use that in github CI
return "BRANCH"


# Path for duckdb connection - needed for local dev
Expand Down

0 comments on commit 6b1dfd0

Please sign in to comment.