Skip to content

Commit

Permalink
Merge pull request #60 from SVT/useshutdown
Browse files Browse the repository at this point in the history
Use shutdown function when num_requests are done
  • Loading branch information
Jahaja committed Apr 17, 2013
2 parents 3de3928 + be12f60 commit 34a1165
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions locust/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 0 additions & 2 deletions locust/runners.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
"""
Expand Down

0 comments on commit 34a1165

Please sign in to comment.