Skip to content

Conversation

@kacpermuda
Copy link
Contributor

@kacpermuda kacpermuda commented Apr 4, 2025

In Task SDK for AF3, BaseOperator only has self.inlets and self.outlets, without the "helper" methods that we used in OL (get_inlet_defs(), get_outlet_defs()). These methods are added in airflow.models.baseoperator.BaseOperator but they are not added for BaseSensor in airflow.sdk.bases.sensor.BaseSensorOperator so the OL extraction breaks for sensors.

This already caused problems f.e. when running sensors on AF3:
image
``

This PR switches the OL provider to use inlets and outlets directly so that it always works.


^ 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 airflow-core/newsfragments.

@mobuchowski mobuchowski merged commit 25cf414 into apache:main Apr 4, 2025
67 checks passed
@kacpermuda kacpermuda deleted the fix-ol-inlets-outlets branch April 4, 2025 10:07
nailo2c pushed a commit to nailo2c/airflow that referenced this pull request Apr 4, 2025
diogotrodrigues pushed a commit to diogotrodrigues/airflow that referenced this pull request Apr 6, 2025
simonprydden pushed a commit to simonprydden/airflow that referenced this pull request Apr 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants