locust 2.41.2.dev9__py3-none-any.whl → 2.41.3.dev4__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/contrib/milvus.py +5 -4
- locust/main.py +5 -5
- {locust-2.41.2.dev9.dist-info → locust-2.41.3.dev4.dist-info}/METADATA +1 -1
- {locust-2.41.2.dev9.dist-info → locust-2.41.3.dev4.dist-info}/RECORD +8 -8
- {locust-2.41.2.dev9.dist-info → locust-2.41.3.dev4.dist-info}/WHEEL +0 -0
- {locust-2.41.2.dev9.dist-info → locust-2.41.3.dev4.dist-info}/entry_points.txt +0 -0
- {locust-2.41.2.dev9.dist-info → locust-2.41.3.dev4.dist-info}/licenses/LICENSE +0 -0
locust/_version.py
CHANGED
@@ -28,7 +28,7 @@ version_tuple: VERSION_TUPLE
|
|
28
28
|
commit_id: COMMIT_ID
|
29
29
|
__commit_id__: COMMIT_ID
|
30
30
|
|
31
|
-
__version__ = version = '2.41.
|
32
|
-
__version_tuple__ = version_tuple = (2, 41,
|
31
|
+
__version__ = version = '2.41.3.dev4'
|
32
|
+
__version_tuple__ = version_tuple = (2, 41, 3, 'dev4')
|
33
33
|
|
34
34
|
__commit_id__ = commit_id = None
|
locust/contrib/milvus.py
CHANGED
@@ -21,7 +21,7 @@ class BaseClient(ABC):
|
|
21
21
|
pass
|
22
22
|
|
23
23
|
@abstractmethod
|
24
|
-
def create_collection(self, schema, index_params) -> None:
|
24
|
+
def create_collection(self, schema, index_params, **kwargs) -> None:
|
25
25
|
pass
|
26
26
|
|
27
27
|
@abstractmethod
|
@@ -80,11 +80,12 @@ class MilvusV2Client(BaseClient):
|
|
80
80
|
def close(self):
|
81
81
|
self.client.close()
|
82
82
|
|
83
|
-
def create_collection(self, schema, index_params):
|
83
|
+
def create_collection(self, schema, index_params, **kwargs):
|
84
84
|
self.client.create_collection(
|
85
85
|
collection_name=self.collection_name,
|
86
86
|
schema=schema,
|
87
87
|
index_params=index_params,
|
88
|
+
**kwargs,
|
88
89
|
)
|
89
90
|
|
90
91
|
def insert(self, data):
|
@@ -299,7 +300,7 @@ class MilvusUser(User):
|
|
299
300
|
timeout: int = 60,
|
300
301
|
schema: CollectionSchema | None = None,
|
301
302
|
index_params: IndexParams | None = None,
|
302
|
-
**
|
303
|
+
**kwargs, # enable_dynamic_field, num_shards, consistency_level etc. ref: https://milvus.io/api-reference/pymilvus/v2.6.x/MilvusClient/Collections/create_collection.md
|
303
304
|
):
|
304
305
|
super().__init__(environment)
|
305
306
|
|
@@ -317,7 +318,7 @@ class MilvusUser(User):
|
|
317
318
|
timeout=timeout,
|
318
319
|
)
|
319
320
|
if schema is not None:
|
320
|
-
self.client.create_collection(schema=schema, index_params=index_params)
|
321
|
+
self.client.create_collection(schema=schema, index_params=index_params, **kwargs)
|
321
322
|
|
322
323
|
@staticmethod
|
323
324
|
def _fire_event(request_type: str, name: str, result: dict[str, Any]):
|
locust/main.py
CHANGED
@@ -584,11 +584,11 @@ See https://github.com/locustio/locust/wiki/Installation#increasing-maximum-numb
|
|
584
584
|
headless_master_greenlet = gevent.spawn(runner.start, options.num_users, options.spawn_rate)
|
585
585
|
headless_master_greenlet.link_exception(greenlet_exception_handler)
|
586
586
|
|
587
|
-
|
588
|
-
|
589
|
-
|
590
|
-
|
591
|
-
|
587
|
+
if options.run_time:
|
588
|
+
logger.info(f"Run time limit set to {options.run_time} seconds")
|
589
|
+
spawn_run_time_quit_greenlet()
|
590
|
+
elif not environment.shape_class:
|
591
|
+
logger.info("No run time limit set, use CTRL+C to interrupt")
|
592
592
|
|
593
593
|
if options.csv_prefix:
|
594
594
|
gevent.spawn(stats_csv_writer.stats_writer).link_exception(greenlet_exception_handler)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
locust/__init__.py,sha256=HadpgGidiyCDPSKwkxrk1Qw6eB7dTmftNJVftuJzAiw,1876
|
2
2
|
locust/__main__.py,sha256=vBQ82334kX06ImDbFlPFgiBRiLIinwNk3z8Khs6hd74,31
|
3
|
-
locust/_version.py,sha256=
|
3
|
+
locust/_version.py,sha256=4LkYHV-6s25bJ0Z3aK7tGBNqxq_uqezOuD_tJPBa0F4,719
|
4
4
|
locust/argument_parser.py,sha256=E0HM9jOlKCzPM9S_E_UKSwgiF_CL0aIli5eCcOG8Xac,33547
|
5
5
|
locust/clients.py,sha256=OfMTOT3LwijczdL3u6bpDwDNM2TDcPCIwXBelizPOyw,20776
|
6
6
|
locust/debug.py,sha256=7CCm8bIg44uGH2wqBlo1rXBzV2VzwPicLxLewz8r5CQ,5099
|
@@ -11,7 +11,7 @@ locust/exception.py,sha256=XCQyJj5XHvJPgTWGhzgjjavoqVdyF0tqG2wj6WzmXvo,1954
|
|
11
11
|
locust/html.py,sha256=18LlaL-NEQdthXVdS16gRAd4SOpW_bowOJKyuLvWrCY,4043
|
12
12
|
locust/input_events.py,sha256=lqLDB2Ax-OQ7-vtYNkGjySjfaWVobBzqf0GxRwjcLcQ,3323
|
13
13
|
locust/log.py,sha256=5E2ZUOa3V4sfCqa-470Gle1Ik9L5nxYitsjEB9tRwE0,3455
|
14
|
-
locust/main.py,sha256=
|
14
|
+
locust/main.py,sha256=AcSPnubfTKM3CtO4YIP94RamBxDg4G37QEDrUE-iHoQ,28895
|
15
15
|
locust/py.typed,sha256=gkWLl8yD4mIZnNYYAIRM8g9VarLvWmTAFeUfEbxJLBw,65
|
16
16
|
locust/runners.py,sha256=RqqCZaGt61gjlFR8KkCUJupOZAJPjpTiYCuRbVJ_gNo,70680
|
17
17
|
locust/shape.py,sha256=t-lwBS8LOjWcKXNL7j2U3zroIXJ1b0fazUwpRYQOKXw,1973
|
@@ -19,7 +19,7 @@ locust/stats.py,sha256=qyoSKT0i7RunLDj5pMGqizK1Sp8bcqUsXwh2m4_DpR8,47203
|
|
19
19
|
locust/web.py,sha256=pLYuocmx9gifJ4vsVDgGDYIPkQhQxI7kKjxoXcUajqM,31865
|
20
20
|
locust/contrib/__init__.py,sha256=LtZN7MczpIAbZkN7PT2h8W2wgb9nBl6cDXbFCVsV4fo,290
|
21
21
|
locust/contrib/fasthttp.py,sha256=bobc455EvX53brWPDXVy8UDITdH2YJ7iDpkSbNaZ_i8,31140
|
22
|
-
locust/contrib/milvus.py,sha256=
|
22
|
+
locust/contrib/milvus.py,sha256=ebOIVo6-rO3hnAMPKzMyof5MQd7kxOZFMkBNZYOluYk,13015
|
23
23
|
locust/contrib/mongodb.py,sha256=1seUYgJOaNKwybYOP9PUEVhgl8hGy-G33f8lFj3R8W8,1246
|
24
24
|
locust/contrib/mqtt.py,sha256=qwhM7xVYCBYifUSSxG_xH6rh5jUf6l17Rw_T5e0ZJK4,15800
|
25
25
|
locust/contrib/oai.py,sha256=Ot3T8lp31ThckGbNps86oVvq6Vn845Eec0mxhDmONDE,2684
|
@@ -57,8 +57,8 @@ locust/webui/dist/assets/terminal.gif,sha256=iw80LO2u0dnf4wpGfFJZauBeKTcSpw9iUfI
|
|
57
57
|
locust/webui/dist/assets/testruns-dark.png,sha256=G4p2VZSBuuqF4neqUaPSshIp5OKQJ_Bvb69Luj6XuVs,125231
|
58
58
|
locust/webui/dist/assets/testruns-light.png,sha256=JinGDiiBPOkhpfF-XCbmQqhRInqItrjrBTLKt5MlqVI,130301
|
59
59
|
pytest_locust/plugin.py,sha256=3jr_5H_1SHCJTdQdgnTDJ-09r5jXzNKxJPkocfE9HF4,1669
|
60
|
-
locust-2.41.
|
61
|
-
locust-2.41.
|
62
|
-
locust-2.41.
|
63
|
-
locust-2.41.
|
64
|
-
locust-2.41.
|
60
|
+
locust-2.41.3.dev4.dist-info/METADATA,sha256=vkoJFOpvrQw6fDWtgESkfRNCvPxl2QyigxAyXAz3jZ8,9585
|
61
|
+
locust-2.41.3.dev4.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
62
|
+
locust-2.41.3.dev4.dist-info/entry_points.txt,sha256=0uIHcQ71R1qaWhM_sd8uBUCCJgp7gJfGHUVMnJeZfcY,86
|
63
|
+
locust-2.41.3.dev4.dist-info/licenses/LICENSE,sha256=5hnz-Vpj0Z3kSCQl0LzV2hT1TLc4LHcbpBp3Cy-EuyM,1110
|
64
|
+
locust-2.41.3.dev4.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|