From 08768801487a252f45a077b9a9b35f3e9db146c3 Mon Sep 17 00:00:00 2001 From: Lars Holmberg Date: Fri, 10 Sep 2021 14:12:13 +0200 Subject: [PATCH] Dont launch autostart greenlet on workers, even if they happened to get the --autostart flag. --- locust/main.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/locust/main.py b/locust/main.py index a8b2d19837..905812271d 100644 --- a/locust/main.py +++ b/locust/main.py @@ -463,9 +463,8 @@ def autoquit(): options.num_users = 1 if options.spawn_rate is None: options.spawn_rate = 1 - - autostart_master_greenlet = gevent.spawn(runner.start, options.num_users, options.spawn_rate) - autostart_master_greenlet.link_exception(greenlet_exception_handler) + autostart_master_greenlet = gevent.spawn(runner.start, options.num_users, options.spawn_rate) + autostart_master_greenlet.link_exception(greenlet_exception_handler) def timelimit_stop(): logger.info("--run-time limit reached, stopping test")