-
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
Overwriting weight by config-users may lead to crash #2852
Labels
Comments
Interesting. @tdadela as this is your code, do you think you could take a look? @evanchaoli Is this issue present in 2.30.0? |
I am new to Locust, only tried the latest version. But I can do a quick test today. |
2.3.0 has the same problem:
|
tdadela said he’d get back to me, but it might be a few days. thanks for testing the old version. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Prerequisites
Description
In the attached locustfile, there are no "weight" defined for both user classes, which works fine.
However, if I overwrite weights with config-users options, it will crash:
As you can see, I use
--config-users
to overwrite the second user's weight to 0, then it crashed.Command line
$ locust -u 2 --config-users '[{"user_class_name": "CBotApiUser", "weight": 0}]'
Locustfile contents
Python version
3.9.19
Locust version
locust 2.31.2 from /Users/chaol/venv/3.9/lib/python3.9/site-packages/locust (Python 3.9.19, OpenSSL 3.3.0)
Operating system
MacOS
The text was updated successfully, but these errors were encountered: