Skip to content

Commit

Permalink
fix: dbt automation missing
Browse files Browse the repository at this point in the history
  • Loading branch information
cbini committed Sep 25, 2024
1 parent d006148 commit 45e3827
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/teamster/libraries/dbt/dagster_dbt_translator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 45e3827

Please sign in to comment.