-
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
Option to prevent stats from being reset when all locusts are hatched #205
Comments
You could do this by overriding this block of code: |
I'm re-opening this issue because it keeps popping up, so it might be good to provide an option for turning off the resetting of the stats. Until a solution has been implemented, here's a workaround that I posted in #236, that monkey patches Locust and disables stats resetting (will also make the "Reset stats" button in the web UI not work): from locust.stats import RequestStats
def noop(*arg, **kwargs):
print "Stats reset prevented by monkey patch!"
RequestStats.reset_all = noop |
Run into the same issue today. Hope it will be fixed soon. :) |
I'm also in favor of this setting. The requests in on_start() are part of what I want to measure |
+1 |
+1 |
1 similar comment
+1 |
+1 |
This was implemented on master a few days ago, see the changelog and the previous commits: c61d3bb |
thanks @alexandrul |
How does one prevent the stats from being automatically reset once all locusts are hatched? I understand that this is the intended behavior of Locust, but for my particular use case I need the stats not to be reset.
What is the recommended workaround for this?
The text was updated successfully, but these errors were encountered: