-
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
Runner doesn't look on shape_class of environment #1862
Comments
@max-rocket-internet is the most load shape-y person. Do you have time to take a look? |
@kirillantv does it work when using it as a normal locustfile and a master + worker? i.e. remove everything after the |
@kirillantv Is this also occuring with locust 1.6? |
@max-rocket-internet yeap. With normal locustfile that works. @mboutet with locust 1.6 it is also occuring. I am also confused by |
You should use |
@mboutet Hm. Thanks! I also needed to pass |
Documentation PR would be welcome. And a warning logging if someone runs runner.start() with a shape set on environment. |
…tart(). Helps avoid confusion and fixes #1862 (or at least makes it very clear what the problem is)
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 10 days. |
This issue was closed because it has been stalled for 10 days with no activity. This does not necessarily mean that the issue is bad, but it most likely means that nobody is willing to take the time to fix it. If you have found Locust useful, then consider contributing a fix yourself! |
I still have this issue where I pass the custom load shape and call runner.start_shape(), the load test spawns 1 user every second instead of following what the load shape tells it to
|
Describe the bug
I use locust as library and I am investigating how to user custom load shape in this case. And seems like locust ignore shape_class in environment.
Expected behavior
Load increasing by 10 users every 30 seconds
Actual behavior
I've got only 1 user per second all the time
After approximately 2 minutes:
Steps to reproduce
This is my code:
Run it with
python /path_to_file
Environment
The text was updated successfully, but these errors were encountered: