Skip to content
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

Fix missing data in stats_history/HTML chart when running LoadShape #1911

Merged
merged 1 commit into from
Oct 21, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions locust/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,8 @@ def spawn_run_time_quit_greenlet():
stats_printer_greenlet = gevent.spawn(stats_printer(runner.stats))
stats_printer_greenlet.link_exception(greenlet_exception_handler)

gevent.spawn(stats_history, runner)

def start_automatic_run():
if options.master:
# wait for worker nodes to connect
Expand Down Expand Up @@ -408,8 +410,6 @@ def start_automatic_run():
if options.csv_prefix:
gevent.spawn(stats_csv_writer.stats_writer).link_exception(greenlet_exception_handler)

gevent.spawn(stats_history, runner)

def shutdown():
"""
Shut down locust by firing quitting event, printing/writing stats and exiting
Expand Down