Files
dagster/apps/weather/src/schedules.py
2025-07-28 19:37:52 +02:00

12 lines
575 B
Python

# This does not work:
# Tried to build a partitioned schedule from an asset job, but received an invalid partitions definition. The permitted partitions definitions are:
# 1. TimeWindowPartitionsDefinition
# 2. MultiPartitionsDefinition with a single TimeWindowPartitionsDefinition dimension
# 3. StaticPartitionsDefinition
# Instead, use a sensor to trigger materialization on a schedule
# raw_weather_schedule = dg.build_schedule_from_partitioned_job(
# job=raw_weather_job,
# # cron_schedule="0 * * * *",
# default_status=dg.DefaultScheduleStatus.RUNNING,
# )