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

[docs] Fixed snippet mismatch #19538

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
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
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@ 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.keys(["trips_by_week"]),
name="trip_update_job",
selection=AssetSelection.all() - trips_by_week
)
```

Expand All @@ -39,9 +41,11 @@ 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
selection=AssetSelection.all() - AssetSelection.keys(["trips_by_week"])
selection=AssetSelection.all() - trips_by_week
)
```
Loading