Skip to content
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

deprecate and remove session access from TaskInstance state change listeners #44990

Open
1 task done
mobuchowski opened this issue Dec 17, 2024 · 1 comment
Open
1 task done
Labels
airflow3.0:breaking Candidates for Airflow 3.0 that contain breaking changes airflow3.0:candidate Potential candidates for Airflow 3.0 area:lineage area:Listeners kind:meta High-level information important to the community

Comments

@mobuchowski
Copy link
Contributor

mobuchowski commented Dec 17, 2024

Body

Currently, TI state listeners accept TI database model and session object.

In Airflow 3.0, the database access from worker is removed due to AIP-72. This necessitates removal of db access in TI state listener API - as it is also executed on worker.

In Airflow 2.11, session argument should be deprecated, and removed (or always be None?) in 3.0. Additionally, in 3.0, it will be passed RuntimeTaskInstance.

Committer

  • I acknowledge that I am a maintainer/committer of the Apache Airflow project.
@mobuchowski mobuchowski added kind:meta High-level information important to the community area:lineage area:Listeners airflow3.0:candidate Potential candidates for Airflow 3.0 airflow3.0:breaking Candidates for Airflow 3.0 that contain breaking changes labels Dec 17, 2024
@potiuk potiuk modified the milestones: Airflow 3.0.0, Airflow 2.11.0 Dec 17, 2024
@potiuk
Copy link
Member

potiuk commented Dec 17, 2024

Marked it as "2.11.0" milestone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
airflow3.0:breaking Candidates for Airflow 3.0 that contain breaking changes airflow3.0:candidate Potential candidates for Airflow 3.0 area:lineage area:Listeners kind:meta High-level information important to the community
Projects
None yet
Development

No branches or pull requests

2 participants