Skip to content

Commit c6843c6

Browse files
Added uniqueness in the new warehouse name to avoid name conflict (#542)
Added uniqueness in the new warehouse name to avoid name conflict Fixes #432
1 parent ac7b8bb commit c6843c6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/databricks/labs/ucx/install.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import subprocess
88
import sys
99
import tempfile
10+
import time
1011
import webbrowser
1112
from dataclasses import replace
1213
from pathlib import Path
@@ -304,7 +305,7 @@ def warehouse_type(_):
304305
)
305306
if warehouse_id == "create_new":
306307
new_warehouse = self._ws.warehouses.create(
307-
name="Unity Catalog Migration",
308+
name=f"Unity Catalog Migration {time.time_ns()}",
308309
spot_instance_policy=SpotInstancePolicy.COST_OPTIMIZED,
309310
warehouse_type=EndpointInfoWarehouseType.PRO,
310311
cluster_size="Small",

0 commit comments

Comments
 (0)