-
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
use_as_lib.py example getting stuck when running #1542
Comments
For now, just remove these lines:
@taojy123 can you have a look at this? Should it just be removed from the lib-example, or should the method be reworked to be more similar to stats_printer? We could also add running the lib-example to the unit tests. |
I can see that makes the example work fine, unfortunately I'm doing something a little bit more involved and removing that line does very little to help. I'm not entirely sure what's going on here but basically when I remove that line in my code the test begins and starts making requests absolutely no problem but there are absolutely no stats stored. It might be because I'm using an old locustfile which I've quickly upgraded to 1.0 and the advice may have changed but I have a gRPC client running which when it makes a request it either runs This locustfile does run absolutely fine when ran normally through the locust CLI I'm just wondering what's holding this back specifically. |
Sorry, I make a mistake in the example code. |
@taojy123 Such an obivous mistake now that I see it. Thanks for clearing it up! |
Describe the bug
Running the as a library example gets stuck looping over empty stats. It appears that from the traceback it's stuck running the stats and that the gevent is somehow blocking
I've tested with Python 3.7.3 and Python 3.8, as well as Locust 1.2.2 and Locust 1.2.1.
Expected behavior
The Web UI should come up, show stats, and have a test running when loaded.
Actual behavior
The Web UI is blank, a test is never started.
Steps to reproduce
Copy the use_as_lib.py example, run with python from the command line.
Environment
python use_as_lib.py
The text was updated successfully, but these errors were encountered: