-
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
KeyboardInterrupt does not gracefully exit custom load shape #1910
Comments
@max-rocket-internet Do you have a minute to look at this? |
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 believe this issue still persists (using 2.14.2). From the error trace we see that it fails in It's dirty, but we could catch it like this to let it end gracefully:
Thoughts? Locust's inability to gracefully exit means |
LGTM, PR very welcome. PR with unit test even more so :) I'd skip the "modified locust main is running" logging though (unclear what that even means) |
Sorry to reopen this issue, I was wondering what the release cadence of locust was or something I have to do on my end to get the next version released with these changes |
There’s no particular cadence and the current master version has a feature that I might not want to release after all :) but I can probably squeeze it in this weekend. But you can always use the latest PR merge using |
Describe the bug
KeyboardInterrupt does not gracefully exit custom load shape.
Expected behavior
A report should be generated after Ctrl-C, like with a normal test case.
Actual behavior
The program crashes:
Steps to reproduce
Use this example from this very repo, launched as
locust --headless -f step_load.py --host https://localhost
:Environment
locust --headless -f step_load.py --host https://localhost
The text was updated successfully, but these errors were encountered: