locust-cloud 1.5.2__py3-none-any.whl → 1.5.3__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
@@ -202,7 +202,12 @@ def main() -> None:
202
202
  s3_bucket = f"{options.kube_cluster_name}-{options.kube_namespace}"
203
203
  deployed_pods: list[Any] = []
204
204
  worker_count: int = max(options.workers or math.ceil(options.users / USERS_PER_WORKER), 2)
205
-
205
+ if options.users > 10000:
206
+ logger.error("You asked for more than 10000 Users, that isn't allowed.")
207
+ sys.exit(1)
208
+ if worker_count > 20:
209
+ logger.error("You asked for more than 20 workers, that isn't allowed.")
210
+ sys.exit(1)
206
211
  try:
207
212
  if not (
208
213
  (options.username and options.password) or (options.aws_access_key_id and options.aws_secret_access_key)