-
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
Exception then test stops if run in headless mode and autoquit != -1 #1915
Comments
Fix the case when locust stops with exception in headless mode with autoquit != -1
Did you run with headless AND autostart? Those settings are not meant to be combined, as headless already implies autostart... |
Yes, I run it with headless and autostart. But I think more friendly if user dont need keep in mind, what if he changes settings headless, he needs also change autostart to work programm correctly. ) |
I guess so, but that is not the intended way (and most commonly would happen because the user is confused and thinks they need to specify autostart) so if we want to support that then we should at least log a warning. If you add that I can merge. |
Or maybe we dont need to warn, but we should at least invert that if-statement to check for headless instead of autostart. There should be no difference at all in what code gets executed when someone has added --autostart in addition to --headless. |
Fix the case when locust stops with exception in headless mode with autostart and autoquit != -1. Warning for using --autostart in headless mode or worker process.
Already added a warning. ) But I will think about this proposal. |
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. |
Describe the bug
Exception then test stops
venv\lib\site-packages\locust\main.py", line 327, in stop_and_optionally_quit
web_ui.stop()
AttributeError: 'NoneType' object has no attribute 'stop'
Expected behavior
Stop without exception
Actual behavior
Steps to reproduce
Run test in destributed mode with headless = true and autoquit = 0.
Environment
The text was updated successfully, but these errors were encountered: