-
Notifications
You must be signed in to change notification settings - Fork 14.8k
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
AIP-72: Add support for outlet_events
in Task Context
#45727
Conversation
943ecd7
to
2c40265
Compare
Did you consider sending these via the initial context we send in the response to the Run request? |
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.
A couple of comments/alternate URL designs, but code LGTM
part of apache#45717 This PR adds support for `outlet_events` in Context dict within the Task SDK by adding an endpoint on the API Server which is fetched when outlet_events is accessed.
2c40265
to
8c04b05
Compare
Following failure is unrelated
|
Follow-up of apache#45727 to use Protocol to allow auto-completion on IDE while not introducing runtime dep
Follow-up of apache#45727 to use Protocol to allow auto-completion on IDE while not introducing runtime dep
elif isinstance(msg, GetAssetByName): | ||
asset_resp = self.client.assets.get(name=msg.name) | ||
asset_result = AssetResult.from_asset_response(asset_resp) | ||
resp = asset_result.model_dump_json(exclude_unset=True).encode() | ||
elif isinstance(msg, GetAssetByUri): | ||
asset_resp = self.client.assets.get(uri=msg.uri) | ||
asset_result = AssetResult.from_asset_response(asset_resp) | ||
resp = asset_result.model_dump_json(exclude_unset=True).encode() |
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.
I was just wondering what would happen if both were provided. Nicely handled
Follow-up of apache#45727 to use Protocol to allow auto-completion on IDE while not introducing runtime dep
Follow-up of apache#45727 to use Protocol to allow auto-completion on IDE while not introducing runtime dep
Follow-up of #45727 to use Protocol to allow auto-completion on IDE while not introducing runtime dep
part of apache#45717 and apache#45752 This PR adds support for `outlet_events` in Context dict within the Task SDK by adding an endpoint on the API Server which is fetched when outlet_events is accessed.
Follow-up of apache#45727 to use Protocol to allow auto-completion on IDE while not introducing runtime dep
part of apache#45717 and apache#45752 This PR adds support for `outlet_events` in Context dict within the Task SDK by adding an endpoint on the API Server which is fetched when outlet_events is accessed.
Follow-up of apache#45727 to use Protocol to allow auto-completion on IDE while not introducing runtime dep
part of apache#45717 and apache#45752 This PR adds support for `outlet_events` in Context dict within the Task SDK by adding an endpoint on the API Server which is fetched when outlet_events is accessed.
Follow-up of apache#45727 to use Protocol to allow auto-completion on IDE while not introducing runtime dep
part of #45717
This PR adds support for
outlet_events
in Context dict within the Task SDK by adding an endpoint on the API Server which is fetched when outlet_events is accessed.^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named
{pr_number}.significant.rst
or{issue_number}.significant.rst
, in newsfragments.