Skip to content

Drop usage of with await lock#1270

Open
ramikg wants to merge 1 commit intoapache:trunkfrom
ramikg:fix-asyncio-reactor
Open

Drop usage of with await lock#1270
ramikg wants to merge 1 commit intoapache:trunkfrom
ramikg:fix-asyncio-reactor

Conversation

@ramikg
Copy link

@ramikg ramikg commented Feb 18, 2026

Trying to connect to Cassandra using the asyncio reactor times out in Python 3.9+.
This is because pushing messages to the queue silently fails due to the usage of the with await asyncio.Lock syntax, removed in Python 3.9.

I've replaced it with async with lock (as suggested by the docs), and now it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments