Skip to content

Commit 1bd17dd

Browse files
committed
Refactor workflow name and code structure
1 parent a4345ef commit 1bd17dd

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -249,9 +249,9 @@ def failing_task(self, ctx: RuntimeContext):
249249
raise ValueError("This task is supposed to fail.")
250250

251251

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

256256
@job_task
257257
def scan_workspace_code(self, ctx: RuntimeContext):
@@ -265,7 +265,7 @@ def scan_workspace_code(self, ctx: RuntimeContext):
265265
else:
266266
paths = [p.strip() for p in path_param.split(",") if p.strip()]
267267

268-
# Create and use the workspace linter
269-
workspace_linter = ctx.workspace_tables_linter
270-
workspace_linter.scan_workspace_for_tables(paths)
271-
logger.info("Workspace table scanning completed and results stored in inventory database")
268+
# Create and use the workspace linter
269+
workspace_linter = ctx.workspace_tables_linter
270+
workspace_linter.scan_workspace_for_tables(paths)
271+
logger.info("Workspace table scanning completed and results stored in inventory database")

src/databricks/labs/ucx/runtime.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from databricks.sdk.config import with_user_agent_extra
77

88
from databricks.labs.ucx.__about__ import __version__
9-
from databricks.labs.ucx.assessment.workflows import Assessment, Failing, AssessWorkflows, WorkspaceTablesScanner
9+
from databricks.labs.ucx.assessment.workflows import Assessment, Failing, AssessWorkflows, WorkspaceCodeScanner
1010
from databricks.labs.ucx.contexts.workflow_task import RuntimeContext
1111
from databricks.labs.ucx.framework.tasks import Workflow, parse_args
1212
from databricks.labs.ucx.installer.logs import TaskLogger
@@ -52,7 +52,7 @@ def all(cls):
5252
ConvertWASBSToADLSGen2(),
5353
PermissionsMigrationAPI(),
5454
MigrationRecon(),
55-
WorkspaceTablesScanner(),
55+
WorkspaceCodeScanner(),
5656
Failing(),
5757
]
5858
)

0 commit comments

Comments
 (0)