Skip to content

Commit 256435f

Browse files
Add locust-cloud
1 parent 5f71427 commit 256435f

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

Diff for: locust/main.py

+4
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
locust_cloud_version = f" (locust-cloud {importlib.metadata.version('locust-cloud')})"
5050
except ModuleNotFoundError as e:
5151
locust_cloud_version = ""
52+
locust_cloud = None
5253
if e.msg != "No module named 'locust_cloud'":
5354
raise
5455

@@ -170,6 +171,9 @@ def is_valid_percentile(parameter):
170171
# parse all command line options
171172
options = parse_options()
172173

174+
if getattr(options, "cloud", None):
175+
sys.exit(locust_cloud.main())
176+
173177
if options.headful:
174178
options.headless = False
175179

Diff for: pyproject.toml

+1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ dependencies = [
5252
"Flask-Cors>=3.0.10",
5353
"pywin32; sys_platform == 'win32'",
5454
"setuptools>=70.0.0",
55+
"locust-cloud>=1.18.0",
5556
]
5657

5758
[project.urls]

0 commit comments

Comments
 (0)