Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[v3-1-test] Protect against hanging thread in aiosqlite 0.22+ (#60217)#60245

Merged
potiuk merged 1 commit intoapache:v3-1-testfrom
potiuk:backport-9b364ca-v3-1-test
Jan 7, 2026
Merged

[v3-1-test] Protect against hanging thread in aiosqlite 0.22+ (#60217)#60245
potiuk merged 1 commit intoapache:v3-1-testfrom
potiuk:backport-9b364ca-v3-1-test

Conversation

Copy link
Member

potiuk commented Jan 7, 2026

The change in model of aiosqlite impacted sqlalchemy handling of closing the connection - the way how currrent sqlalchemy works with it is that it leaves threads hanging. This is fixed in sqlalchemy main - sqlalchemy/sqlalchemy#13039 but until they release it and until we have the sqlalchemy>=2.0.46, we should upper-bind the aiosqlite
(cherry picked from commit 9b364ca)


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

...#60217)

The change in model of aiosqlite impacted sqlalchemy handling of
closing the connection - the way how currrent sqlalchemy works
with it is that it leaves threads hanging. This is fixed
in sqlalchemy main - sqlalchemy/sqlalchemy#13039
but until they release it and until we have the sqlalchemy>=2.0.46,
we should upper-bind the aiosqlite
(cherry picked from commit 9b364ca)

Co-authored-by: Jarek Potiuk
potiuk merged commit f28d275 into apache:v3-1-test Jan 7, 2026
7 checks passed
potiuk deleted the backport-9b364ca-v3-1-test branch January 7, 2026 22:39
potiuk mentioned this pull request Jan 7, 2026
ephraimbuddy added the type:bug-fix Changelog: Bug Fixes label Jan 8, 2026
ephraimbuddy added this to the Airflow 3.1.6 milestone Jan 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

type:bug-fix Changelog: Bug Fixes

Projects

None yet

Milestone

Airflow 3.1.6

Development

Successfully merging this pull request may close these issues.

2 participants