Skip to content

Commit

Permalink
global and local policies
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanneo committed Jan 18, 2023
1 parent 5788f18 commit c5c4ec4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
3 changes: 3 additions & 0 deletions stargazer/dbt_project_1/dbt_project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ vars:
# are materialized, and more!
models:
stargazers:
+dagster_freshness_policy:
maximum_lag_minutes: 540
cron_schedule: "0 9 * * *"
# When schema changes on models we are building, we should run dbt with --full-refresh flag explicitely
+on_schema_change: "fail"
+materialized: table
Expand Down
3 changes: 3 additions & 0 deletions stargazer/dbt_project_2/dbt_project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ vars:
# are materialized, and more!
models:
stargazers:
+dagster_freshness_policy:
maximum_lag_minutes: 540
cron_schedule: "0 9 * * *"
# When schema changes on models we are building, we should run dbt with --full-refresh flag explicitely
+on_schema_change: "fail"
+materialized: table
Expand Down
6 changes: 0 additions & 6 deletions stargazer/dbt_project_2/models/mart/mart_gh_join.sql
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
{{
config(
dagster_freshness_policy={"maximum_lag_minutes": 9*60, "cron_schedule": "0 9 * * *"}
)
}}

with mart_gh_stargazer as (
select *
from {{ source('mart', 'mart_gh_stargazer') }}
Expand Down

0 comments on commit c5c4ec4

Please sign in to comment.