Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix partitioning for ECMWF #12

Merged
merged 1 commit into from
Sep 14, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion nwp/jobs.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import datetime as dt

from dagster import (
daily_partitioned_config,
AssetSelection,
DailyPartitionsDefinition,
ScheduleDefinition,
Expand Down Expand Up @@ -59,7 +60,7 @@ def build_config_on_runtime(model, run, delay=0):
schedules.append(ScheduleDefinition(job=asset_job, cron_schedule="0 8 * * *"))


@partitioned_config(partitions_def=DailyPartitionsDefinition(start_date=dt.datetime(2021, 1, 1)))
@daily_partitioned_config(start_date=dt.datetime(2021, 1, 1))
def ecmwf_daily_partitioned_config(start: dt.datetime, _end: dt.datetime):
return {"ops": {"nwp_consumer_docker_op": {"config": {
"date_from": start.strftime("%Y-%m-%d"),
Expand Down