diff --git a/docs/dagster-university/pages/dagster-essentials/lesson-8/creating-a-schedule-with-a-date-based-partition.md b/docs/dagster-university/pages/dagster-essentials/lesson-8/creating-a-schedule-with-a-date-based-partition.md index a6327cb6ad954..2b03c5f9c877a 100644 --- a/docs/dagster-university/pages/dagster-essentials/lesson-8/creating-a-schedule-with-a-date-based-partition.md +++ b/docs/dagster-university/pages/dagster-essentials/lesson-8/creating-a-schedule-with-a-date-based-partition.md @@ -13,6 +13,8 @@ Now that you’ve partitioned the relevant assets, the schedule can be changed t Currently, `trip_update_job` in `jobs/__init__.py` should look like this: ```python +trips_by_week = AssetSelection.keys("trips_by_week") + trip_update_job = define_asset_job( name="trip_update_job", selection=AssetSelection.all() - AssetSelection.assets(["trips_by_week"]), @@ -39,6 +41,8 @@ The job should now look like this: from dagster import define_asset_job, AssetSelection, AssetKey from ..partitions import monthly_partition +trips_by_week = AssetSelection.keys("trips_by_week") + trip_update_job = define_asset_job( name="trip_update_job", partitions_def=monthly_partition, # partitions added here