We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Originally posted by un-hongly December 20, 2024
team.run_stream(task=input.message) async for message in stream: pass
async for message in stream cause high cpu usages.
async for message in stream
We need to replace this busy loop with proper eventing based on when messages are available to be consumed.
autogen/python/packages/autogen-core/src/autogen_core/_single_threaded_agent_runtime.py
Line 446 in a4c1314
The text was updated successfully, but these errors were encountered:
Good catch. We can use asyncio.Event to set and fire events or use asyncio.Queue
Sorry, something went wrong.
No branches or pull requests
Discussed in #4772
Originally posted by un-hongly December 20, 2024
async for message in stream
cause high cpu usages.We need to replace this busy loop with proper eventing based on when messages are available to be consumed.
autogen/python/packages/autogen-core/src/autogen_core/_single_threaded_agent_runtime.py
Line 446 in a4c1314
The text was updated successfully, but these errors were encountered: