locust 2.20.2.dev40__py3-none-any.whl → 2.20.2.dev49__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- locust/_version.py +2 -2
- locust/dispatch.py +1 -1
- locust/runners.py +5 -6
- locust/user/task.py +1 -5
- {locust-2.20.2.dev40.dist-info → locust-2.20.2.dev49.dist-info}/METADATA +1 -1
- {locust-2.20.2.dev40.dist-info → locust-2.20.2.dev49.dist-info}/RECORD +10 -10
- {locust-2.20.2.dev40.dist-info → locust-2.20.2.dev49.dist-info}/LICENSE +0 -0
- {locust-2.20.2.dev40.dist-info → locust-2.20.2.dev49.dist-info}/WHEEL +0 -0
- {locust-2.20.2.dev40.dist-info → locust-2.20.2.dev49.dist-info}/entry_points.txt +0 -0
- {locust-2.20.2.dev40.dist-info → locust-2.20.2.dev49.dist-info}/top_level.txt +0 -0
locust/_version.py
CHANGED
@@ -12,5 +12,5 @@ __version__: str
|
|
12
12
|
__version_tuple__: VERSION_TUPLE
|
13
13
|
version_tuple: VERSION_TUPLE
|
14
14
|
|
15
|
-
__version__ = version = '2.20.2.
|
16
|
-
__version_tuple__ = version_tuple = (2, 20, 2, '
|
15
|
+
__version__ = version = '2.20.2.dev49'
|
16
|
+
__version_tuple__ = version_tuple = (2, 20, 2, 'dev49')
|
locust/dispatch.py
CHANGED
@@ -124,7 +124,7 @@ class UsersDispatcher(Iterator):
|
|
124
124
|
worker_nodes_by_id = sorted(self._worker_nodes, key=lambda w: w.id)
|
125
125
|
|
126
126
|
# Give every worker an index indicating how many workers came before it on that host
|
127
|
-
workers_per_host = defaultdict(
|
127
|
+
workers_per_host = defaultdict(int)
|
128
128
|
for worker_node in worker_nodes_by_id:
|
129
129
|
host = worker_node.id.split("_")[0]
|
130
130
|
worker_node._index_within_host = workers_per_host[host]
|
locust/runners.py
CHANGED
@@ -215,8 +215,7 @@ class Runner:
|
|
215
215
|
self.update_state(STATE_SPAWNING)
|
216
216
|
|
217
217
|
logger.debug(
|
218
|
-
"Spawning additional
|
219
|
-
% (json.dumps(user_classes_spawn_count), json.dumps(self.user_classes_count))
|
218
|
+
f"Spawning additional {json.dumps(user_classes_spawn_count)} ({json.dumps(self.user_classes_count)} already running)..."
|
220
219
|
)
|
221
220
|
|
222
221
|
def spawn(user_class: str, spawn_count: int) -> list[User]:
|
@@ -902,7 +901,7 @@ class MasterRunner(DistributedRunner):
|
|
902
901
|
self.stop(send_stop_to_client=False)
|
903
902
|
logger.debug("Quitting...")
|
904
903
|
for client in self.clients.all:
|
905
|
-
logger.debug("Sending quit message to worker
|
904
|
+
logger.debug(f"Sending quit message to worker {client.id} (index {self.get_worker_index(client.id)})")
|
906
905
|
self.server.send_to_client(Message("quit", None, client.id))
|
907
906
|
gevent.sleep(0.5) # wait for final stats report from all workers
|
908
907
|
self.greenlet.kill(block=True)
|
@@ -1123,7 +1122,7 @@ class MasterRunner(DistributedRunner):
|
|
1123
1122
|
|
1124
1123
|
@property
|
1125
1124
|
def reported_user_classes_count(self) -> dict[str, int]:
|
1126
|
-
reported_user_classes_count: dict[str, int] = defaultdict(
|
1125
|
+
reported_user_classes_count: dict[str, int] = defaultdict(int)
|
1127
1126
|
for client in self.clients.ready + self.clients.spawning + self.clients.running:
|
1128
1127
|
for name, count in client.user_classes_count.items():
|
1129
1128
|
reported_user_classes_count[name] += count
|
@@ -1139,11 +1138,11 @@ class MasterRunner(DistributedRunner):
|
|
1139
1138
|
If None, will send to all attached workers
|
1140
1139
|
"""
|
1141
1140
|
if client_id:
|
1142
|
-
logger.debug("Sending
|
1141
|
+
logger.debug(f"Sending {msg_type} message to worker {client_id}")
|
1143
1142
|
self.server.send_to_client(Message(msg_type, data, client_id))
|
1144
1143
|
else:
|
1145
1144
|
for client in self.clients.all:
|
1146
|
-
logger.debug("Sending
|
1145
|
+
logger.debug(f"Sending {msg_type} message to worker {client.id}")
|
1147
1146
|
self.server.send_to_client(Message(msg_type, data, client.id))
|
1148
1147
|
|
1149
1148
|
|
locust/user/task.py
CHANGED
@@ -423,11 +423,7 @@ class TaskSet(metaclass=TaskSetMeta):
|
|
423
423
|
return random.randint(self.min_wait, self.max_wait) / 1000.0
|
424
424
|
else:
|
425
425
|
raise MissingWaitTimeError(
|
426
|
-
"You must define a wait_time method on either the
|
427
|
-
% (
|
428
|
-
type(self.user).__name__,
|
429
|
-
type(self).__name__,
|
430
|
-
)
|
426
|
+
"You must define a wait_time method on either the {type(self.user).__name__} or {type(self).__name__} class"
|
431
427
|
)
|
432
428
|
|
433
429
|
def wait(self):
|
@@ -1,10 +1,10 @@
|
|
1
1
|
locust/__init__.py,sha256=Q6sqz7YDUaMKPEqcDjWcXEFG2ilVRQR7kl0fG0yK_5A,1402
|
2
2
|
locust/__main__.py,sha256=vBQ82334kX06ImDbFlPFgiBRiLIinwNk3z8Khs6hd74,31
|
3
|
-
locust/_version.py,sha256=
|
3
|
+
locust/_version.py,sha256=4k1OgLtS-jea60AXNIaJH22EIomiYxjvnLU8nNy117Y,428
|
4
4
|
locust/argument_parser.py,sha256=4U2c9bemocD6bjHD9ZJjMiYAGdGn5I8XKIP7GDxhxDQ,26563
|
5
5
|
locust/clients.py,sha256=1ZV7Fj23cBZBPS2P9rkiBvzlZ10wUwcS5bjoHhs4L8o,14809
|
6
6
|
locust/debug.py,sha256=2yTQo7XlfXQcT_Gc2dI7M94Jsed8Log35ZXX7LOHxrs,5059
|
7
|
-
locust/dispatch.py,sha256=
|
7
|
+
locust/dispatch.py,sha256=rZSGXbh1fxPNjy4T7fSswSMZt9j4DnxjnvT8RqH4dKU,18604
|
8
8
|
locust/env.py,sha256=vqCiDqppzR9myA37p9pqsjLI4x744ENfm8UF_RrvdNk,11307
|
9
9
|
locust/event.py,sha256=5RK8ihH3ekm5i9x9WO_HxoRiva6FnY-2lKDMN1yBac8,7711
|
10
10
|
locust/exception.py,sha256=jGgJ32ubuf4pWdlaVOkbh2Y0LlG0_DHi-lv3ib8ppOE,1791
|
@@ -13,7 +13,7 @@ locust/input_events.py,sha256=jkVhHK5oGJQQZdmX8K_n7tPeIfZpdOb39x286wATgpQ,3078
|
|
13
13
|
locust/log.py,sha256=2IVp9YL4ZPfWdj3sBFuOHfgneg3g7m7tUGR-sy2s3E8,3155
|
14
14
|
locust/main.py,sha256=qw5cK6KWA6qWor_9WASLP7cBL6xMRg-6t6wid2O6CBs,26800
|
15
15
|
locust/py.typed,sha256=gkWLl8yD4mIZnNYYAIRM8g9VarLvWmTAFeUfEbxJLBw,65
|
16
|
-
locust/runners.py,sha256=
|
16
|
+
locust/runners.py,sha256=5G8wSxYW-g13007bbUKQxevEgLBaStf_JZ2B93LYdvE,65639
|
17
17
|
locust/shape.py,sha256=Gs39hB4RwMpInd4hiACL2mnIa_iA__eZD4oEcZQwG-s,1934
|
18
18
|
locust/stats.py,sha256=9r1cfRCCgDnbZAsJBkvahxOWTDMHbuB9d6bkvKmgqZY,45819
|
19
19
|
locust/web.py,sha256=v5mhuzTzftznoziIsoDBm2Y0XnlqrIfQH-ThqSTKvos,27288
|
@@ -79,7 +79,7 @@ locust/test/util.py,sha256=LmxhmhLeXlsHnj1fPyesunHz5yqC9o0-UqOug5VBw14,2667
|
|
79
79
|
locust/user/__init__.py,sha256=u5wggKl1tLRFlO66xbyVoQAHrbRRfEE7bFuY1AmUZOY,71
|
80
80
|
locust/user/inspectuser.py,sha256=f_EpKCaFj-GukLWX7Tymxa95wckTNN4bgG7_-8XSYZ8,2641
|
81
81
|
locust/user/sequential_taskset.py,sha256=6oaUz64xS13cpAgO--HxeMgn2N98DPpylUHqJ8H1v80,2542
|
82
|
-
locust/user/task.py,sha256
|
82
|
+
locust/user/task.py,sha256=-idbiixDoTj1RWL6ziM1WinI7tkbSgCARcvgOZwhyn0,16708
|
83
83
|
locust/user/users.py,sha256=XghJbdU7ym8n18KbPu1f3xpcqHOPdLi3wP2ERMX3c1M,9709
|
84
84
|
locust/user/wait_time.py,sha256=bGRKMVx4lom75sX3POYJUa1CPeME2bEAXG6CEgxSO5U,2675
|
85
85
|
locust/util/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -97,9 +97,9 @@ locust/webui/dist/assets/favicon.ico,sha256=IUl-rYqfpHdV38e-s0bkmFIeLS-n3Ug0DQxk
|
|
97
97
|
locust/webui/dist/assets/index-ea7131ad.js,sha256=-vfMnp8eoIZzKYS5R3XtHJ_vTsA-hmd-szaghfy0w9A,1634222
|
98
98
|
locust/webui/dist/assets/index-ea7131ad.js.map,sha256=aqMPTJlW6GncuyF6Q8AcFK9sUJVci5Fuc2vPeJzJUx0,8732080
|
99
99
|
locust/webui/dist/assets/logo.png,sha256=lPCYhpDsPXYY3gUMlq3bzABI5WBtdBOvtay8R9hRFv4,2943
|
100
|
-
locust-2.20.2.
|
101
|
-
locust-2.20.2.
|
102
|
-
locust-2.20.2.
|
103
|
-
locust-2.20.2.
|
104
|
-
locust-2.20.2.
|
105
|
-
locust-2.20.2.
|
100
|
+
locust-2.20.2.dev49.dist-info/LICENSE,sha256=78XGpIn3fHVBfaxlPNUfjVufSN7QsdhpJMRJHv2AFpo,1095
|
101
|
+
locust-2.20.2.dev49.dist-info/METADATA,sha256=v-zaN20hMbhp8SPVs3aPU549_bLV3GvWfrQpqL-fhVs,7391
|
102
|
+
locust-2.20.2.dev49.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
103
|
+
locust-2.20.2.dev49.dist-info/entry_points.txt,sha256=RAdt8Ku-56m7bFjmdj-MBhbF6h4NX7tVODR9QNnOg0E,44
|
104
|
+
locust-2.20.2.dev49.dist-info/top_level.txt,sha256=XSsjgPA8Ggf9TqKVbkwSqZFuPlZ085X13M9orDycE20,7
|
105
|
+
locust-2.20.2.dev49.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|