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
monitored_assets param for multi-asset sensor #11567
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Ignored Deployment
|
Maybe we should just shorten it to |
Or |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good!
python_modules/dagster/dagster/_core/definitions/multi_asset_sensor_definition.py
Show resolved
Hide resolved
jamiedemaria
approved these changes
Jan 10, 2023
sryza
force-pushed
the
multi-asset-sensor-monitor-params
branch
from
January 10, 2023 20:41
e992954
to
e5a8497
Compare
sryza
force-pushed
the
multi-asset-sensor-monitor-params
branch
from
January 10, 2023 21:56
e5a8497
to
f86954c
Compare
sryza
force-pushed
the
multi-asset-sensor-monitor-params
branch
from
January 18, 2023 19:43
f86954c
to
fdabcde
Compare
sryza
changed the title
monitored_asset_selection param for multi-asset sensor
monitored_assets param for multi-asset sensor
Jan 18, 2023
sryza
force-pushed
the
multi-asset-sensor-monitor-params
branch
from
January 18, 2023 21:34
fdabcde
to
a758a23
Compare
sryza
force-pushed
the
multi-asset-sensor-monitor-params
branch
from
January 18, 2023 21:54
a758a23
to
067ce52
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary & Motivation
This takes advantage of the fact that multi-asset sensor is a relatively recent experimental API to do a breaking change. It replaces the
asset_keys
andasset_selection
arguments to@multi_asset_sensor
with a singlemonitored_assets
argument.The advantages:
asset_selection
parameter that acceptsUnion[AssetSelection, Sequence[AssetKey]]
, it would make life easier.asset_selection
param on @sensor, which means something different.Fixes #11558.
How I Tested These Changes
bk