Skip to content

Revert lru_cache for request lock to avoid attempting to bind to multiple event loops - #407

Merged
alessio-locatelli merged 2 commits into
mainfrom
request-lock
Aug 5, 2026
Merged

Revert lru_cache for request lock to avoid attempting to bind to multiple event loops#407
alessio-locatelli merged 2 commits into
mainfrom
request-lock

Conversation

@JWCook

@JWCook JWCook commented Aug 5, 2026

Copy link
Copy Markdown
Member

Follow-up from #406

So far I've only seen the original RuntimeError on python 3.14, but that is likely coincidence (nothing relevant to async locks changed in 3.14).

This change keeps the behavior of A) using one lock per cache key, and B) not keeping an unbounded amount of lock objects indefinitely (using weakref).

@JWCook JWCook added the bug Something isn't working label Aug 5, 2026
@JWCook JWCook changed the title Revert lru_cache for request lock to avoid binding to multiple event loops Revert lru_cache for request lock to avoid attempting to bind to multiple event loops Aug 5, 2026
@JWCook
JWCook marked this pull request as ready for review August 5, 2026 18:46
@alessio-locatelli
alessio-locatelli merged commit 217a299 into main Aug 5, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants