Skip to content

Commit

Permalink
feat: Populate Ray Cluster dashboard_address from proto field
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 582853171
  • Loading branch information
matthew29tang authored and Copybara-Service committed Nov 16, 2023
1 parent 1f81cf2 commit dd4b852
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -138,11 +138,15 @@ def persistent_resource_to_cluster(
Returns:
Cluster.
"""
dashboard_address = persistent_resource.resource_runtime.access_uris.get(
"RAY_DASHBOARD_URI"
)
cluster = Cluster(
cluster_resource_name=persistent_resource.name,
network=persistent_resource.network,
state=persistent_resource.state.name,
labels=persistent_resource.labels,
dashboard_address=dashboard_address,
)
if not persistent_resource.resource_runtime_spec.ray_spec:
# skip PersistentResource without RaySpec
Expand Down

0 comments on commit dd4b852

Please sign in to comment.