Skip to content

Commit

Permalink
Remove commented out handling of sigint in getdata
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberw committed Dec 11, 2023
1 parent ad6a4ca commit 10205ad
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions locust_plugins/synchronizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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)

Expand All @@ -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()

0 comments on commit 10205ad

Please sign in to comment.