From 6b1dfd035ea3445b69129111e223afad6837fd51 Mon Sep 17 00:00:00 2001 From: Alex Langenfeld Date: Thu, 8 Aug 2024 17:10:27 -0500 Subject: [PATCH] change dbt target resolution (#112) --- .../hooli_demo_assets/resources/__init__.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/hooli-demo-assets/hooli_demo_assets/resources/__init__.py b/hooli-demo-assets/hooli_demo_assets/resources/__init__.py index 338d36f1..fa47459a 100644 --- a/hooli-demo-assets/hooli_demo_assets/resources/__init__.py +++ b/hooli-demo-assets/hooli_demo_assets/resources/__init__.py @@ -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