Skip to content

Commit

Permalink
make sure locusts are spawned in local run otherwise it will exit une…
Browse files Browse the repository at this point in the history
…xpectedly
  • Loading branch information
delulu committed Dec 6, 2019
1 parent 7eec53d commit 2e148ba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions locust/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,8 @@ def timelimit_stop():
runners.locust_runner.start_stepload(options.num_clients, options.hatch_rate, options.step_clients, options.step_time)
elif not options.slave:
runners.locust_runner.start_hatching(options.num_clients, options.hatch_rate)
# make locusts are spawned
time.sleep(1)
elif not options.slave:
# spawn web greenlet
logger.info("Starting web monitor at http://%s:%s" % (options.web_host or "*", options.port))
Expand Down

0 comments on commit 2e148ba

Please sign in to comment.