locust-cloud 1.2.0__py3-none-any.whl → 1.2.1__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_cloud/cloud.py CHANGED
@@ -190,8 +190,7 @@ logging.getLogger("urllib3").setLevel(logging.INFO)
190
190
  def main() -> None:
191
191
  s3_bucket = f"{options.kube_cluster_name}-{options.kube_namespace}"
192
192
  deployed_pods: list[Any] = []
193
- worker_count: int = options.workers or math.ceil(options.users / USERS_PER_WORKER)
194
- worker_count = worker_count if worker_count > 2 else 2
193
+ worker_count: int = max(options.workers or math.ceil(options.users / USERS_PER_WORKER), 2)
195
194
 
196
195
  try:
197
196
  if not (
@@ -202,7 +201,7 @@ def main() -> None:
202
201
  )
203
202
  sys.exit(1)
204
203
 
205
- logger.info(f"Logging you into Locust Cloud ({options.aws_region_name}, v{__version__})")
204
+ logger.info(f"Authenticating ({options.aws_region_name}, v{__version__})")
206
205
  logger.debug(f"Lambda url: {options.lambda_url}")
207
206
  credential_manager = CredentialManager(
208
207
  lambda_url=options.lambda_url,
@@ -281,6 +280,7 @@ def main() -> None:
281
280
  "AWS_SESSION_TOKEN": aws_session_token,
282
281
  }
283
282
  try:
283
+ # logger.info(payload) # might be useful when debugging sometimes
284
284
  response = requests.post(deploy_endpoint, json=payload, headers=headers)
285
285
  except requests.exceptions.RequestException as e:
286
286
  logger.error(f"Failed to deploy the load generators: {e}")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: locust-cloud
3
- Version: 1.2.0
3
+ Version: 1.2.1
4
4
  Summary: Locust Cloud
5
5
  Requires-Python: >=3.11
6
6
  Requires-Dist: blessed==1.20.0
@@ -1,6 +1,6 @@
1
1
  locust_cloud/__init__.py,sha256=51wdjGT0nqS5dVuFVDMhthnPacrctteiCMrwRqaPaQg,1867
2
2
  locust_cloud/auth.py,sha256=2fcTIq0tYDckDsZZ7yFTHZn5nG7Ir1dlV1QIu_tp3JA,3164
3
- locust_cloud/cloud.py,sha256=UxO-7lC8mhiraNVZyL3sy0B7VuS8rfBEaHDis35OTO0,15050
3
+ locust_cloud/cloud.py,sha256=gEiP2Lq7iQbWYiuuDbLmMgv5CUTUrYJ1uRzAgFv2cHw,15062
4
4
  locust_cloud/constants.py,sha256=YGgIEnaOT9cAA8F8a8Z8lOmlI78D2fXiVpP0RF213MA,167
5
5
  locust_cloud/credential_manager.py,sha256=JbuS22RTGAmngVB9DFLxHIgaonCSImemMGvtWnxBZRE,5515
6
6
  locust_cloud/timescale/exporter.py,sha256=j1K-czMUdOLFt5Sop0PTF6TL52vYdngEEI5OEM3Xl60,11128
@@ -15,7 +15,7 @@ locust_cloud/webui/vite.config.ts,sha256=cqxPMkbwEA3H9mGGbuPulQUhIHCosUqm_1usxzs
15
15
  locust_cloud/webui/yarn.lock,sha256=OgV48S7IOMpqldFPL5MFG1fjP8HTcDlFSFzMuRCkGWU,216596
16
16
  locust_cloud/webui/dist/index.html,sha256=aWAK1eKa4qBfhMonHNf2sHC6iY9RoTzNdvFcc33Wtp4,664
17
17
  locust_cloud/webui/dist/assets/index-BG65KOq7.js,sha256=vKgju6VqTxkI5yFtyDr6zGtb3D7V_AcVCYPDm4SeJos,2795922
18
- locust_cloud-1.2.0.dist-info/METADATA,sha256=Uodimg4BAc69QBXhdlaA0N0S1sD0h41uZyNTjgGF07o,2188
19
- locust_cloud-1.2.0.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
20
- locust_cloud-1.2.0.dist-info/entry_points.txt,sha256=PGyAb4e3aTsGS3N3VGShDl6VzJaXy7QwsEgsLOC7V00,57
21
- locust_cloud-1.2.0.dist-info/RECORD,,
18
+ locust_cloud-1.2.1.dist-info/METADATA,sha256=1DFZwFeySGGILvXwuXHtg1rbrnUbv7BQ6_07uoRgAF4,2188
19
+ locust_cloud-1.2.1.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
20
+ locust_cloud-1.2.1.dist-info/entry_points.txt,sha256=PGyAb4e3aTsGS3N3VGShDl6VzJaXy7QwsEgsLOC7V00,57
21
+ locust_cloud-1.2.1.dist-info/RECORD,,