You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After upgrading to 2.13.0, we started seeing the following error:
File "/path/to/app/venv/lib/python3.9/site-packages/locust/env.py", line 84, in __init__
self.stop_timeout = float(parsed_options.stop_timeout)
AttributeError: 'Namespace' object has no attribute 'stop_timeout'
We are using Locust as a library, and when creating the Locust Environment, we are passing in a Namespace object for parsed_options. In old versions of Locust, we did not need to pass stop_timeout, but now it appears that we do. Is this intentional?
Expected behavior
Existing code should continue to work after a minor version upgrade.
Actual behavior
An AttributeError exception is raised from within Locust.
Steps to reproduce
from argparse import Namespace
from locust.env import Environment
parsed_options = Namespace(timeout=42)
Environment(parsed_options=parsed_options)
^ the above works in 2.12.0 but fails in 2.13.0
Environment
OS: Linux
Python version: 3.9.11
Locust version: 2.13.0
Locust command line that you ran: n/a
Locust file contents (anonymized if necessary): n/a
The text was updated successfully, but these errors were encountered:
Describe the bug
After upgrading to 2.13.0, we started seeing the following error:
We are using Locust as a library, and when creating the Locust
Environment
, we are passing in aNamespace
object forparsed_options
. In old versions of Locust, we did not need to passstop_timeout
, but now it appears that we do. Is this intentional?Expected behavior
Existing code should continue to work after a minor version upgrade.
Actual behavior
An
AttributeError
exception is raised from within Locust.Steps to reproduce
^ the above works in 2.12.0 but fails in 2.13.0
Environment
The text was updated successfully, but these errors were encountered: