Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
landscapepainter committed Aug 21, 2024
1 parent dc36eab commit c561619
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sky/provision/azure/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
_DEPLOYMENT_NAME = 'skypilot-config'
_LEGACY_DEPLOYMENT_NAME = 'ray-config'
_RESOURCE_GROUP_WAIT_FOR_DELETION_TIMEOUT = 480 # 8 minutes
_CLUSTER_ID = '{cluster_name_on_cloud}-{unique_id}'


def get_azure_sdk_function(client: Any, function_name: str) -> Callable:
Expand All @@ -46,7 +47,9 @@ def get_cluster_id(resource_group: str, cluster_name_on_cloud: str):
# We use the cluster name + resource group hash as the
# unique ID for the cluster, as we need to make sure that
# the deployments have unique names during failover.
cluster_id = f'{cluster_name_on_cloud}-{unique_id}'
cluster_id = _CLUSTER_ID.format(
cluster_name_on_cloud=cluster_name_on_cloud,
unique_id=unique_id)
return cluster_id


Expand Down

0 comments on commit c561619

Please sign in to comment.