Skip to content

Conversation

@kaxil
Copy link
Member

@kaxil kaxil commented Jul 17, 2025

This has a single bug fix - #53455


^ 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.

kaxil added 2 commits July 18, 2025 00:22
In Airflow 3.x, sensors inherit from airflow.sdk.BaseOperator instead of
airflow.models.BaseOperator. The _ensure_tasks function in SkipMixin was
only checking for the models BaseOperator, causing sensors to be filtered
out and not properly skipped by branching operators like BranchSQLOperator.

Updated the import logic to use the correct SDK BaseOperator for Airflow 3.x
and added comprehensive tests to verify sensors are properly included in
branching skip operations.

Fixes apache#52219

(cherry picked from commit fc5410c)
@kaxil
Copy link
Member Author

kaxil commented Jul 17, 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.

1 participant