From 45e3827f358272f3c51e0a3ce47f01223e541006 Mon Sep 17 00:00:00 2001 From: Charlie Bini <5003326+cbini@users.noreply.github.com> Date: Wed, 25 Sep 2024 19:36:27 +0000 Subject: [PATCH] fix: dbt automation missing --- src/teamster/libraries/dbt/dagster_dbt_translator.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/teamster/libraries/dbt/dagster_dbt_translator.py b/src/teamster/libraries/dbt/dagster_dbt_translator.py index 0acc26835b..138d51e3a4 100644 --- a/src/teamster/libraries/dbt/dagster_dbt_translator.py +++ b/src/teamster/libraries/dbt/dagster_dbt_translator.py @@ -40,7 +40,10 @@ def get_automation_condition( and dbt_resource_props["config"]["materialized"] == "view" and "extracts" in dbt_resource_props["fqn"] ): - return AutomationCondition.code_version_changed() + return ( + AutomationCondition.code_version_changed() + | AutomationCondition.newly_missing() + ) else: return ( AutomationCondition.eager() | AutomationCondition.code_version_changed()