Skip to content

Commit

Permalink
chore: add cron schedule
Browse files Browse the repository at this point in the history
  • Loading branch information
JasperHG90 committed Mar 1, 2024
1 parent 37e042c commit f697220
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,11 @@ def daily_air_quality_data(
description="Luchtmeetnet API stations",
partitions_def=stations_partition,
# Setting max_materializations_per_minute disables the rate limiter
auto_materialize_policy=AutoMaterializePolicy.eager(max_materializations_per_minute=None),
auto_materialize_policy=AutoMaterializePolicy.eager(
max_materializations_per_minute=None
).with_rules(
AutoMaterializeRule.materialize_on_cron("0 0 1 * *", all_partitions=True),
),
group_name="stations",
)
def station_names(
Expand All @@ -116,7 +120,7 @@ def station_names(
AutoMaterializeRule.materialize_on_required_for_freshness(),
),
freshness_policy=FreshnessPolicy(
maximum_lag_minutes=60 * 24,
maximum_lag_minutes=10,
cron_schedule="0 0 1 * *",
),
group_name="stations",
Expand Down

0 comments on commit f697220

Please sign in to comment.