From 10205ad4985e1ff251132c6e3737efc55ecb26ee Mon Sep 17 00:00:00 2001 From: Lars Holmberg Date: Mon, 11 Dec 2023 16:32:16 +0100 Subject: [PATCH] Remove commented out handling of sigint in getdata --- locust_plugins/synchronizer.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/locust_plugins/synchronizer.py b/locust_plugins/synchronizer.py index 2c7b67d..98af200 100644 --- a/locust_plugins/synchronizer.py +++ b/locust_plugins/synchronizer.py @@ -3,7 +3,6 @@ from gevent.event import AsyncResult from locust import User, events -# from locust.exception import StopUser from locust.env import Environment from locust.runners import MasterRunner, WorkerRunner @@ -51,7 +50,6 @@ def user_response(environment: Environment, msg, **kwargs): def getdata(u: User): - # try: if not u.environment.runner: # no need to do anything clever if there is no runner return next(iterator) @@ -64,7 +62,3 @@ def getdata(u: User): data = test_data[id(u)].get()["payload"] del test_data[id(u)] return data - # except KeyboardInterrupt: - # # probably we're just shutting down but lets try to be as graceful as possible - # logging.debug("Caught SIGINT" - # raise StopUser()