-
Notifications
You must be signed in to change notification settings - Fork 16.4k
AIP-72: Add support for outlet_events in Task Context
#45727
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
Conversation
943ecd7 to
2c40265
Compare
|
Did you consider sending these via the initial context we send in the response to the Run request? |
ashb
left a comment
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
Follow-up of apache/airflow#45727 to use Protocol to allow auto-completion on IDE while not introducing runtime dep GitOrigin-RevId: 08d0273c1a88333f504913ae7b35ddb0414f24b1
Follow-up of apache/airflow#45727 to use Protocol to allow auto-completion on IDE while not introducing runtime dep GitOrigin-RevId: 08d0273c1a88333f504913ae7b35ddb0414f24b1
Follow-up of apache/airflow#45727 to use Protocol to allow auto-completion on IDE while not introducing runtime dep GitOrigin-RevId: 08d0273c1a88333f504913ae7b35ddb0414f24b1
part of #45717
This PR adds support for
outlet_eventsin 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.rstor{issue_number}.significant.rst, in newsfragments.