Skip to content

Commit

Permalink
Added uniqueness in the new warehouse name to avoid name conflict (#542)
Browse files Browse the repository at this point in the history
Added uniqueness in the new warehouse name to avoid name conflict

Fixes #432
  • Loading branch information
dipankarkush-db authored Nov 8, 2023
1 parent ac7b8bb commit c6843c6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/databricks/labs/ucx/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import subprocess
import sys
import tempfile
import time
import webbrowser
from dataclasses import replace
from pathlib import Path
Expand Down Expand Up @@ -304,7 +305,7 @@ def warehouse_type(_):
)
if warehouse_id == "create_new":
new_warehouse = self._ws.warehouses.create(
name="Unity Catalog Migration",
name=f"Unity Catalog Migration {time.time_ns()}",
spot_instance_policy=SpotInstancePolicy.COST_OPTIMIZED,
warehouse_type=EndpointInfoWarehouseType.PRO,
cluster_size="Small",
Expand Down

0 comments on commit c6843c6

Please sign in to comment.