From be12f6085093f4175719f0b2880da866239dda26 Mon Sep 17 00:00:00 2001 From: Paul Diaconescu Date: Thu, 14 Mar 2013 10:27:38 +0100 Subject: [PATCH] Use shutdown function when num_requests are done --- locust/main.py | 1 + locust/runners.py | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/locust/main.py b/locust/main.py index 9ef47752ea..859b5c4e7f 100644 --- a/locust/main.py +++ b/locust/main.py @@ -395,6 +395,7 @@ def sig_term_handler(): try: logger.info("Starting Locust %s" % version) main_greenlet.join() + shutdown(0) except KeyboardInterrupt, e: shutdown(0) diff --git a/locust/runners.py b/locust/runners.py index 49ddf8c740..9dd6fd3bf3 100644 --- a/locust/runners.py +++ b/locust/runners.py @@ -123,8 +123,6 @@ def start_locust(_): if wait: self.locusts.join() logger.info("All locusts dead\n") - print_stats(self.request_stats) - print_percentile_stats(self.request_stats) #TODO use an event listener, or such, for this? def kill_locusts(self, kill_count): """