-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Make input partitions methods based on asset key not input name #19027
Make input partitions methods based on asset key not input name #19027
Conversation
310782a
to
3e05391
Compare
97d5e6f
to
f062952
Compare
3e05391
to
2149c6b
Compare
f062952
to
5331a95
Compare
2149c6b
to
e68b4af
Compare
5331a95
to
c47a59d
Compare
c47a59d
to
0cd7791
Compare
24176a1
to
e1a4076
Compare
0cd7791
to
fe5fdbf
Compare
@@ -1109,22 +1112,16 @@ def get_output_asset_keys(self) -> AbstractSet[AssetKey]: | |||
output_keys.add(asset_info.key) | |||
return output_keys | |||
|
|||
def has_asset_partitions_for_input(self, input_name: str) -> bool: |
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.
What's the deprecation policy for these methods on StepExecutionContext? Are they considered public? If so i'll retain versions of these methods that just call their asset_key based counterparts after converting the input name to an asset_key
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.
Methods are only public if:
- They're on a publicly-exported class
- They have the
@public
decorator
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.
ok - these are public then. I'll add the method names back
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.
This one at least doesn't have the @public
decorator, right?
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.
yeah, but StepExecutionContext is publicly exported class.
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.
wait... was the list of conditions an AND not an 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.
ah oops yes, an AND
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.
ok i can revert that commit lol
This reverts commit e249a48.
401ba83
to
54cf22d
Compare
2f56390
to
d2ab183
Compare
ac6877e
to
d572c35
Compare
converting back to draft to get this out of review queues until context work is re-prioritized |
Summary & Motivation
One of the changes I'd like to make to the partition methods on the context is to allow them to accept
CoercibleToAssetKey
rather than input name. This will mean users wont need to map back and forth between asset key and input name and will remove the I/O manager-centric term "input".To achieve this, the top level partition functions in the StepExecutionContext need to accept asset keys rather then input name. Right now the pattern is like this
And I'd like it to be like this:
So that we can support this in
AssetExecutionContext
How I Tested These Changes