Skip to content

Commit 52c9f12

Browse files
committed
Refactoring
add experimental to name enforce explicit path parameter task name
1 parent c981a2d commit 52c9f12

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/databricks/labs/ucx/assessment/workflows.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -251,17 +251,17 @@ def failing_task(self, ctx: RuntimeContext):
251251

252252
class WorkspaceTablesScanner(Workflow):
253253
def __init__(self):
254-
super().__init__('workspace-tables-scanner', [JobParameterDefinition(name="path", default="")])
254+
super().__init__('workspace-tables-scanner-experimental', [JobParameterDefinition(name="path", default="")])
255255

256256
@job_task
257-
def scan_workspace_tables(self, ctx: RuntimeContext):
257+
def scan_workspace_code(self, ctx: RuntimeContext):
258258
"""Scan workspace for table usage using WorkspaceTablesLinter."""
259259
logger.info("Starting workspace table scanning")
260260

261261
# Get the path parameter and split by comma if multiple paths
262262
path_param = ctx.named_parameters.get("path", "")
263263
if not path_param:
264-
paths = ["/"]
264+
logger.error("No path parameter provided. Please provide a comma-separated list of paths to scan.")
265265
else:
266266
paths = [p.strip() for p in path_param.split(",") if p.strip()]
267267

0 commit comments

Comments
 (0)