locust 2.32.3.dev11__py3-none-any.whl → 2.32.3.dev16__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.3.dev11"
17
+ __version__ = "2.32.3.dev16"
18
18
  version = __version__
19
- __version_tuple__ = (2, 32, 3, "dev11")
19
+ __version_tuple__ = (2, 32, 3, "dev16")
20
20
  version_tuple = __version_tuple__
locust/argument_parser.py CHANGED
@@ -162,14 +162,18 @@ def download_locustfile_from_url(url: str) -> str:
162
162
  """
163
163
  try:
164
164
  response = requests.get(url)
165
- # Check if response is valid python code
166
- ast.parse(response.text)
167
165
  except requests.exceptions.RequestException as e:
168
166
  sys.stderr.write(f"Failed to get locustfile from: {url}. Exception: {e}")
169
167
  sys.exit(1)
170
- except SyntaxError:
171
- sys.stderr.write(f"Failed to get locustfile from: {url}. Response is not valid python code.")
172
- sys.exit(1)
168
+ else:
169
+ try:
170
+ # Check if response is valid python code
171
+ ast.parse(response.text)
172
+ except SyntaxError:
173
+ sys.stderr.write(
174
+ f"Failed to get locustfile from: {url}. Response was not valid python code: '{response.text[:100]}'"
175
+ )
176
+ sys.exit(1)
173
177
 
174
178
  with open(os.path.join(tempfile.gettempdir(), urlparse(url).path.split("/")[-1]), "w") as locustfile:
175
179
  locustfile.write(response.text)
locust/main.py CHANGED
@@ -587,11 +587,18 @@ See https://github.com/locustio/locust/wiki/Installation#increasing-maximum-numb
587
587
  logger.error("Gave up waiting for workers to connect")
588
588
  runner.quit()
589
589
  sys.exit(1)
590
- logging.info(
591
- "Waiting for workers to be ready, %s of %s connected",
592
- len(runner.clients.ready),
593
- options.expect_workers,
594
- )
590
+ if time.monotonic() - start_time > 5:
591
+ logging.info(
592
+ "Waiting for workers to be ready, %s of %s connected",
593
+ len(runner.clients.ready),
594
+ options.expect_workers,
595
+ )
596
+ else:
597
+ logging.debug(
598
+ "Waiting for workers to be ready, %s of %s connected",
599
+ len(runner.clients.ready),
600
+ options.expect_workers,
601
+ )
595
602
  # TODO: Handle KeyboardInterrupt and send quit signal to workers that are started.
596
603
  # Right now, if the user sends a ctrl+c, the master will not gracefully
597
604
  # shutdown resulting in all the already started workers to stay active.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: locust
3
- Version: 2.32.3.dev11
3
+ Version: 2.32.3.dev16
4
4
  Summary: Developer-friendly load testing framework
5
5
  Home-page: https://locust.io/
6
6
  License: MIT
@@ -1,7 +1,7 @@
1
1
  locust/__init__.py,sha256=Jit8eNUrwuMLqavyFvMZr69e61DILq_KB4yT4MciScw,1681
2
2
  locust/__main__.py,sha256=vBQ82334kX06ImDbFlPFgiBRiLIinwNk3z8Khs6hd74,31
3
- locust/_version.py,sha256=B5AdM1N52WG943Xd4yEPJEa3cPfPijXRIEGobzMVJYE,460
4
- locust/argument_parser.py,sha256=0g34ARe06NHjEkTBnoluwTEuWFUr37-mMW2xfAwnvmY,30039
3
+ locust/_version.py,sha256=HxQFaf6IGtgJdoJShc8h_L5xMszbtUc0u3nMoz_azzk,460
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
7
  locust/contrib/fasthttp.py,sha256=Fs83qq8zqT4_aTnA8JUQaIWo2IBj-LNi2AKflx8yGtg,28858
@@ -15,7 +15,7 @@ locust/exception.py,sha256=jGgJ32ubuf4pWdlaVOkbh2Y0LlG0_DHi-lv3ib8ppOE,1791
15
15
  locust/html.py,sha256=X9N8u42aHptcQdRZ5cLrBmDuXqRW0yXH_TaWPsWfweY,3691
16
16
  locust/input_events.py,sha256=ZIyePyAMuA_YFYWg18g_pE4kwuQV3RbEB250MzXRwjY,3314
17
17
  locust/log.py,sha256=5E2ZUOa3V4sfCqa-470Gle1Ik9L5nxYitsjEB9tRwE0,3455
18
- locust/main.py,sha256=x12ZG69nxkB17xQo7zSEu2s5t9ZPLLqksKwvp_hzcDY,29931
18
+ locust/main.py,sha256=o4nt8cx7Igo45MsHEKNL15DcFBUvEbmVpYkBApEyPSc,30262
19
19
  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
@@ -47,8 +47,8 @@ locust/webui/dist/auth.html,sha256=bKzJKSAULiHAOI01JR96jrbOLEjpXOzlp0C3I0D2sWs,6
47
47
  locust/webui/dist/index.html,sha256=5bnINHCJTK-I7e4GrdOziXlYK_7aUVyUCpndIVq3e7U,654
48
48
  locust/webui/dist/report.html,sha256=KUmkufa4Ob8GTqBmVtFnueZL8h76eEUMVnoL069cAcg,1471006
49
49
  poetry.lock,sha256=ljIk82fqk3w6yev4VK6hzrKcXvOX2cxzeUKT-9Uz4kw,214437
50
- locust-2.32.3.dev11.dist-info/LICENSE,sha256=78XGpIn3fHVBfaxlPNUfjVufSN7QsdhpJMRJHv2AFpo,1095
51
- locust-2.32.3.dev11.dist-info/METADATA,sha256=NZlN__geXX7gpdbQTcJPGaOgwBU897htoRFyWN7Q7Vc,7877
52
- locust-2.32.3.dev11.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
53
- locust-2.32.3.dev11.dist-info/entry_points.txt,sha256=RhIxlLwU_Ae_WjimS5COUDLagdCh6IOMyLtgaQxNmlM,43
54
- locust-2.32.3.dev11.dist-info/RECORD,,
50
+ locust-2.32.3.dev16.dist-info/LICENSE,sha256=78XGpIn3fHVBfaxlPNUfjVufSN7QsdhpJMRJHv2AFpo,1095
51
+ locust-2.32.3.dev16.dist-info/METADATA,sha256=3R_TMCq1TkqzpmXE0Pwi9mQBLyrPUAgvmFw5vKVQmO8,7877
52
+ locust-2.32.3.dev16.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
53
+ locust-2.32.3.dev16.dist-info/entry_points.txt,sha256=RhIxlLwU_Ae_WjimS5COUDLagdCh6IOMyLtgaQxNmlM,43
54
+ locust-2.32.3.dev16.dist-info/RECORD,,