locust 2.32.5.dev8__py3-none-any.whl → 2.32.5.dev13__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 CHANGED
@@ -14,7 +14,7 @@ __version_tuple__: VERSION_TUPLE
14
14
  version_tuple: VERSION_TUPLE
15
15
 
16
16
 
17
- __version__ = "2.32.5.dev8"
17
+ __version__ = "2.32.5.dev13"
18
18
  version = __version__
19
- __version_tuple__ = (2, 32, 5, "dev8")
19
+ __version_tuple__ = (2, 32, 5, "dev13")
20
20
  version_tuple = __version_tuple__
@@ -96,10 +96,7 @@ def _construct_basic_auth_str(username, password):
96
96
 
97
97
 
98
98
  def insecure_ssl_context_factory():
99
- context = gevent.ssl.create_default_context()
100
- context.check_hostname = False
101
- context.verify_mode = gevent.ssl.CERT_NONE
102
- return context
99
+ return gevent.ssl._create_unverified_context()
103
100
 
104
101
 
105
102
  class FastHttpSession:
locust/runners.py CHANGED
@@ -52,7 +52,7 @@ STATE_INIT, STATE_SPAWNING, STATE_RUNNING, STATE_CLEANUP, STATE_STOPPING, STATE_
52
52
  ]
53
53
  WORKER_REPORT_INTERVAL = 3.0
54
54
  WORKER_LOG_REPORT_INTERVAL = 10
55
- CPU_MONITOR_INTERVAL = 5.0
55
+ CPU_MONITOR_INTERVAL = 10.0
56
56
  CPU_WARNING_THRESHOLD = 90
57
57
  HEARTBEAT_INTERVAL = 1
58
58
  HEARTBEAT_LIVENESS = 3
@@ -283,6 +283,7 @@ class Runner:
283
283
  def monitor_cpu_and_memory(self) -> NoReturn:
284
284
  process = psutil.Process()
285
285
  while True:
286
+ gevent.sleep(CPU_MONITOR_INTERVAL)
286
287
  self.current_cpu_usage = process.cpu_percent()
287
288
  self.current_memory_usage = process.memory_info().rss
288
289
  if self.current_cpu_usage > CPU_WARNING_THRESHOLD:
@@ -296,7 +297,6 @@ class Runner:
296
297
  self.environment.events.usage_monitor.fire(
297
298
  environment=self.environment, cpu_usage=self.current_cpu_usage, memory_usage=self.current_memory_usage
298
299
  )
299
- gevent.sleep(CPU_MONITOR_INTERVAL)
300
300
 
301
301
  @abstractmethod
302
302
  def start(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: locust
3
- Version: 2.32.5.dev8
3
+ Version: 2.32.5.dev13
4
4
  Summary: Developer-friendly load testing framework
5
5
  Home-page: https://locust.io/
6
6
  License: MIT
@@ -1,10 +1,10 @@
1
1
  locust/__init__.py,sha256=Jit8eNUrwuMLqavyFvMZr69e61DILq_KB4yT4MciScw,1681
2
2
  locust/__main__.py,sha256=vBQ82334kX06ImDbFlPFgiBRiLIinwNk3z8Khs6hd74,31
3
- locust/_version.py,sha256=7dzSnKAm6405XutOc5A_Imv1oMLM223Wgwb7CwIgaqE,458
3
+ locust/_version.py,sha256=8CuyEnqHeBpD9JrwjUsodtAg0xGXVUKltxshd4rWcLc,460
4
4
  locust/argument_parser.py,sha256=xB9TQhAALeIZLx0hxoBOVv4dhSNdB15BG0fDYXkyeFc,30137
5
5
  locust/clients.py,sha256=XK-xabq2_5GZKMEjebDobvEjeBTtCs8h2EelL7s68Qs,19346
6
6
  locust/contrib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
- locust/contrib/fasthttp.py,sha256=Fs83qq8zqT4_aTnA8JUQaIWo2IBj-LNi2AKflx8yGtg,28858
7
+ locust/contrib/fasthttp.py,sha256=ehnOrIe1U6C0gW8fRoyHv7-HSSHxfEJxKb5zHw-y1aU,28758
8
8
  locust/contrib/mongodb.py,sha256=1seUYgJOaNKwybYOP9PUEVhgl8hGy-G33f8lFj3R8W8,1246
9
9
  locust/contrib/postgres.py,sha256=OuMWnGYN10K65Tq2axVESEW25Y0g5gJb0rK90jkcCJg,1230
10
10
  locust/debug.py,sha256=7CCm8bIg44uGH2wqBlo1rXBzV2VzwPicLxLewz8r5CQ,5099
@@ -20,7 +20,7 @@ locust/py.typed,sha256=gkWLl8yD4mIZnNYYAIRM8g9VarLvWmTAFeUfEbxJLBw,65
20
20
  locust/rpc/__init__.py,sha256=nVGoHWFQxZjnhCDWjbgXIbmFbN9sizAjkhvSs9_642c,58
21
21
  locust/rpc/protocol.py,sha256=n-rb3GZQcAlldYDj4E4GuFGylYj_26GSS5U29meft5Y,1282
22
22
  locust/rpc/zmqrpc.py,sha256=tMeLQiLII8QP29lAHGZsj5Pf5FsTL-X4wM0DrtR3ALw,3214
23
- locust/runners.py,sha256=buCPhoPtfz0sG61ippqrj7L8wwK6etQb1YQxM1MSp9Q,70610
23
+ locust/runners.py,sha256=300HEAH06tWd2xWYnmZZR6qvjewpXlgQV6o63ce1wj0,70611
24
24
  locust/shape.py,sha256=t-lwBS8LOjWcKXNL7j2U3zroIXJ1b0fazUwpRYQOKXw,1973
25
25
  locust/stats.py,sha256=Ylw-uyt3cpeqy0Oi5kvcloVWgjJm62lu9lbWJfq2lHU,46061
26
26
  locust/user/__init__.py,sha256=S2yvmI_AU9kXirtTIVqiV_Hs7yXzqXvaSgkNo9ig-fk,71
@@ -47,8 +47,8 @@ locust/webui/dist/auth.html,sha256=JYZcdglsfY3B4LEPCteWiNd5kPX21Lx1oaaI00iCTxo,6
47
47
  locust/webui/dist/index.html,sha256=uMAhFNZjFQrWASkqHYx0GPsGSs2DO00OrRkvWItpv38,654
48
48
  locust/webui/dist/report.html,sha256=wd_TO5cREIfgk0ru49DX0Zlxopb5iWsyuB36v_rfST8,1474524
49
49
  poetry.lock,sha256=a4ZAnX6LNBWBJnqtxt4gK0uPSqPsBdDitylFj1rL3LA,214415
50
- locust-2.32.5.dev8.dist-info/LICENSE,sha256=78XGpIn3fHVBfaxlPNUfjVufSN7QsdhpJMRJHv2AFpo,1095
51
- locust-2.32.5.dev8.dist-info/METADATA,sha256=qju-Cg6kKXi7SnI3qsniZxjGzO9hvGW7WNADr8KZduU,9990
52
- locust-2.32.5.dev8.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
53
- locust-2.32.5.dev8.dist-info/entry_points.txt,sha256=RhIxlLwU_Ae_WjimS5COUDLagdCh6IOMyLtgaQxNmlM,43
54
- locust-2.32.5.dev8.dist-info/RECORD,,
50
+ locust-2.32.5.dev13.dist-info/LICENSE,sha256=78XGpIn3fHVBfaxlPNUfjVufSN7QsdhpJMRJHv2AFpo,1095
51
+ locust-2.32.5.dev13.dist-info/METADATA,sha256=ceyOrs8xmuKKdHTnuEiGPWTpFoiiBGxj-cbsmvvcXPU,9991
52
+ locust-2.32.5.dev13.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
53
+ locust-2.32.5.dev13.dist-info/entry_points.txt,sha256=RhIxlLwU_Ae_WjimS5COUDLagdCh6IOMyLtgaQxNmlM,43
54
+ locust-2.32.5.dev13.dist-info/RECORD,,