-
Notifications
You must be signed in to change notification settings - Fork 585
Revert "feat: implement concurrent message reading for session managers (#897)" #1013
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
Conversation
…rs (strands-agents#897)" This reverts commit 08dc4ae.
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
|
I'm adding in #895 which can be used here. But this is still unfortunate, because we are penalizing people who are async from the start to make it easier for the sync builders. Maybe we can abstract things further by running in the existing event loop if one already exists |
Yes and we can check for that and should. |
This reverts commit 08dc4ae.
Description
When the session manager is executed in an async environment, the
asyncio.runwill fail with a "cannot be called from a running event loop" error. This was introduced in #897 as a means to improve the performance of session reads. As a fix, we could wrap theasyncio.runin a thread similar to what we do elsewhere in code. However, since this is a breaking change, we are going to revert the change and work on the fix separately.Note, I made these changes with
git revert.Related Issues
#1012
Documentation PR
N/A
Type of Change
Bug fix
Testing
How have you tested the change? Verify that the changes do not break functionality or introduce warnings in consuming repositories: agents-docs, agents-tools, agents-cli
hatch run prepare: We can rely on the existing tests as this is a revert of an optimization rather than a behavioral change.Checklist
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.