-
Notifications
You must be signed in to change notification settings - Fork 3k
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
support async tasks? #924
Comments
@naivefun gevent ? |
Why do you want to do this? The easiest way is to create more locusts. The paradigm locust has is that each Locust is only executing one task simultaneously (reflecting user behavior). Does creating more clients not solve this situation? |
There are some libraries that are based around |
@aldenpeterson-wf I'm not familiar with python, but async enables NIO so that it scales up easily. Does this work the same way in python? |
I have to call asyncio websockets code from locustfile, seems it's not possible now. |
I should say I have thought that it might be worthwhile to swap from gevent library to asyncio... or at least make that an option behind the scenes |
Yes, it would be worthwhile 👍 |
Then I'll open a new issue to explicitly ask for asyncio support / rewrite. |
See my comment here as it also applies to this issue as well: #1251 (comment) |
hey, have you considered the usage of the asgiref library in the locust sync functions ? Guys, maintainers, theoretically, do you see any potential issues with using asgiref project to execute async functions as sync ones ? |
now the http client is synchronised and we would like to use AioHttpClient to simulate large number of requests concurrently. However the task set supports no
async def xxx()
yet, adding support forasync
would be really helpful?The text was updated successfully, but these errors were encountered: