Skip to content
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

Non Responsive UI/endpoint untill previous tasks are completed #10

Open
amzker opened this issue Apr 30, 2024 · 1 comment
Open

Non Responsive UI/endpoint untill previous tasks are completed #10

amzker opened this issue Apr 30, 2024 · 1 comment

Comments

@amzker
Copy link

amzker commented Apr 30, 2024

scenario: 10 people are communicating

suppose one requests to get document from sql database , one request to gather wether and all.
Until previous function call from agent is not completed, other user functions are on wait. and UI becomes non responsive till Userproxy is free from executing this functions. no new chat can be created

@amzker
Copy link
Author

amzker commented Jan 14, 2025

So guys Whoever looking for solution, we need to use async code everywhere, before i was unaware of async programming.

Basically just use user_proxy.a_initiate
And make all your functions async, if you have files functions use aiofiles, if you have online requests function use aiohttp etc...

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

No branches or pull requests

1 participant