Skip to content

Commit 741cd58

Browse files
Add available + unavailable workers to the endpoints list table (#39)
1 parent ad86471 commit 741cd58

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

launch/cli/endpoints.py

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ def list_endpoints(ctx: click.Context):
2626
"Endpoint type",
2727
"Min Workers",
2828
"Max Workers",
29+
"Available Workers",
30+
"Unavailable Workers",
2931
"Metadata",
3032
title="Endpoints",
3133
title_justify="left",
@@ -39,12 +41,22 @@ def list_endpoints(ctx: click.Context):
3941
servable_endpoint.model_endpoint.endpoint_type,
4042
str(
4143
(servable_endpoint.model_endpoint.worker_settings or {}).get(
42-
"min_workers"
44+
"min_workers", ""
4345
)
4446
),
4547
str(
4648
(servable_endpoint.model_endpoint.worker_settings or {}).get(
47-
"max_workers"
49+
"max_workers", ""
50+
)
51+
),
52+
str(
53+
(servable_endpoint.model_endpoint.worker_settings or {}).get(
54+
"available_workers", ""
55+
)
56+
),
57+
str(
58+
(servable_endpoint.model_endpoint.worker_settings or {}).get(
59+
"unavailable_workers", ""
4860
)
4961
),
5062
servable_endpoint.model_endpoint.metadata or "{}",

0 commit comments

Comments
 (0)