locust 2.41.2.dev6__py3-none-any.whl → 2.41.3.dev2__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/runners.py +4 -4
- {locust-2.41.2.dev6.dist-info → locust-2.41.3.dev2.dist-info}/METADATA +1 -1
- {locust-2.41.2.dev6.dist-info → locust-2.41.3.dev2.dist-info}/RECORD +8 -8
- {locust-2.41.2.dev6.dist-info → locust-2.41.3.dev2.dist-info}/WHEEL +0 -0
- {locust-2.41.2.dev6.dist-info → locust-2.41.3.dev2.dist-info}/entry_points.txt +0 -0
- {locust-2.41.2.dev6.dist-info → locust-2.41.3.dev2.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.dev2'
|
32
|
+
__version_tuple__ = version_tuple = (2, 41, 3, 'dev2')
|
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/runners.py
CHANGED
@@ -1434,9 +1434,9 @@ class WorkerRunner(DistributedRunner):
|
|
1434
1434
|
while True:
|
1435
1435
|
current_logs = get_logs()
|
1436
1436
|
|
1437
|
-
if (len(current_logs) - len(self.logs)) >
|
1437
|
+
if (len(current_logs) - len(self.logs)) > 70:
|
1438
1438
|
logger.warning(
|
1439
|
-
"The worker attempted to send more than
|
1439
|
+
"The worker attempted to send more than 70 log lines in one interval. Further log sending was disabled for this worker."
|
1440
1440
|
)
|
1441
1441
|
self._send_logs(get_logs())
|
1442
1442
|
break
|
@@ -1474,12 +1474,12 @@ class WorkerRunner(DistributedRunner):
|
|
1474
1474
|
# dont complain about getting CTRL-C
|
1475
1475
|
sys.exit(1)
|
1476
1476
|
if not success:
|
1477
|
-
if self.retry <
|
1477
|
+
if self.retry < 30 / CONNECT_TIMEOUT: # lower log level during the first 30 seconds
|
1478
1478
|
logger.debug(
|
1479
1479
|
f"Failed to connect to master {self.master_host}:{self.master_port}{self.web_base_path}, retry {self.retry}/{CONNECT_RETRY_COUNT}."
|
1480
1480
|
)
|
1481
1481
|
else:
|
1482
|
-
logger.
|
1482
|
+
logger.info(
|
1483
1483
|
f"Failed to connect to master {self.master_host}:{self.master_port}{self.web_base_path}, retry {self.retry}/{CONNECT_RETRY_COUNT}."
|
1484
1484
|
)
|
1485
1485
|
if self.retry > CONNECT_RETRY_COUNT:
|
@@ -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=MeuRWQOt-KE9cyOMj5a3r4oTc-GlQX3wUGJo4LKS7-g,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
|
@@ -13,13 +13,13 @@ locust/input_events.py,sha256=lqLDB2Ax-OQ7-vtYNkGjySjfaWVobBzqf0GxRwjcLcQ,3323
|
|
13
13
|
locust/log.py,sha256=5E2ZUOa3V4sfCqa-470Gle1Ik9L5nxYitsjEB9tRwE0,3455
|
14
14
|
locust/main.py,sha256=riKiT8Rx9rUqbUY4iivlM3odvVdPJIFyVdAS1k6QNJg,28898
|
15
15
|
locust/py.typed,sha256=gkWLl8yD4mIZnNYYAIRM8g9VarLvWmTAFeUfEbxJLBw,65
|
16
|
-
locust/runners.py,sha256=
|
16
|
+
locust/runners.py,sha256=RqqCZaGt61gjlFR8KkCUJupOZAJPjpTiYCuRbVJ_gNo,70680
|
17
17
|
locust/shape.py,sha256=t-lwBS8LOjWcKXNL7j2U3zroIXJ1b0fazUwpRYQOKXw,1973
|
18
18
|
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.dev2.dist-info/METADATA,sha256=9TCV81186u4im07BPQHS-yuxFLMTnKceog5_2ewUeoQ,9585
|
61
|
+
locust-2.41.3.dev2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
62
|
+
locust-2.41.3.dev2.dist-info/entry_points.txt,sha256=0uIHcQ71R1qaWhM_sd8uBUCCJgp7gJfGHUVMnJeZfcY,86
|
63
|
+
locust-2.41.3.dev2.dist-info/licenses/LICENSE,sha256=5hnz-Vpj0Z3kSCQl0LzV2hT1TLc4LHcbpBp3Cy-EuyM,1110
|
64
|
+
locust-2.41.3.dev2.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|