locust-cloud 1.5.6__py3-none-any.whl → 1.5.7__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/__init__.py +6 -3
- locust_cloud/webui/dist/assets/{index-DUDp7J7F.js → index-CN8Zcmsf.js} +85 -85
- locust_cloud/webui/dist/index.html +1 -1
- locust_cloud/webui/package.json +1 -1
- locust_cloud/webui/tsconfig.tsbuildinfo +1 -1
- locust_cloud/webui/yarn.lock +4 -4
- {locust_cloud-1.5.6.dist-info → locust_cloud-1.5.7.dist-info}/METADATA +1 -1
- {locust_cloud-1.5.6.dist-info → locust_cloud-1.5.7.dist-info}/RECORD +10 -10
- {locust_cloud-1.5.6.dist-info → locust_cloud-1.5.7.dist-info}/WHEEL +0 -0
- {locust_cloud-1.5.6.dist-info → locust_cloud-1.5.7.dist-info}/entry_points.txt +0 -0
locust_cloud/__init__.py
CHANGED
@@ -21,6 +21,7 @@ PG_PASSWORD = os.environ.get("PG_PASSWORD")
|
|
21
21
|
PG_DATABASE = os.environ.get("PG_DATABASE")
|
22
22
|
PG_PORT = os.environ.get("PG_PORT", 5432)
|
23
23
|
GRAPH_VIEWER = os.environ.get("GRAPH_VIEWER")
|
24
|
+
MAX_USER_COUNT = os.environ.get("MAX_USER_COUNT")
|
24
25
|
logger = logging.getLogger(__name__)
|
25
26
|
|
26
27
|
|
@@ -78,9 +79,6 @@ def on_locust_init(environment: locust.env.Environment, **_args):
|
|
78
79
|
if not (PG_HOST and PG_USER and PG_PASSWORD and PG_DATABASE and PG_PORT):
|
79
80
|
return
|
80
81
|
|
81
|
-
if GRAPH_VIEWER:
|
82
|
-
environment.web_ui.template_args["isGraphViewer"] = True
|
83
|
-
|
84
82
|
try:
|
85
83
|
pool = create_connection_pool(
|
86
84
|
pg_user=PG_USER,
|
@@ -99,5 +97,10 @@ def on_locust_init(environment: locust.env.Environment, **_args):
|
|
99
97
|
Exporter(environment, pool)
|
100
98
|
|
101
99
|
if environment.web_ui:
|
100
|
+
environment.web_ui.template_args["maxUserCount"] = MAX_USER_COUNT
|
101
|
+
|
102
|
+
if GRAPH_VIEWER:
|
103
|
+
environment.web_ui.template_args["isGraphViewer"] = True
|
104
|
+
|
102
105
|
register_auth(environment)
|
103
106
|
register_query(environment, pool)
|