Skip to content

Commit

Permalink
Merge pull request #1911 from AlexisC0de/fix-1908
Browse files Browse the repository at this point in the history
Fix missing data in stats_history/HTML chart when running LoadShape
  • Loading branch information
cyberw authored Oct 21, 2021
2 parents c2b3ef5 + 30dc99d commit ec95c0d
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit ec95c0d

Please sign in to comment.