Skip to content

Commit

Permalink
Quit runner after giving up on waiting for workers instead of just dy…
Browse files Browse the repository at this point in the history
…ing. Builds on #1922
  • Loading branch information
cyberw committed Nov 8, 2021
1 parent 0a08db3 commit ea19e9f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions locust/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,7 @@ def start_automatic_run():
while len(runner.clients.ready) < options.expect_workers:
if options.expect_workers_max_wait and options.expect_workers_max_wait < time.monotonic() - start_time:
logger.error("Gave up waiting for workers to connect.")
runner.quit()
sys.exit(1)
logging.info(
"Waiting for workers to be ready, %s of %s connected",
Expand Down

0 comments on commit ea19e9f

Please sign in to comment.