Skip to content

Commit 591761c

Browse files
authored
Explain why metastore is checked to exists in group migration workflow in docstring (#2614)
Explain why metastore is checked to exists in group migration workflow in docstring. Reason: Account level groups are only available when a metastore is attached to the workspace.
1 parent f0f65bd commit 591761c

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ def __init__(self):
1313

1414
@job_task(job_cluster="table_migration")
1515
def verify_metastore_attached(self, ctx: RuntimeContext):
16-
"""Verifies if a metastore is attached to this workspace. If not, the workflow will fail."""
16+
"""Verifies if a metastore is attached to this workspace. If not, the workflow will fail.
17+
18+
Account level groups are only available when a metastore is attached to the workspace.
19+
"""
1720
ctx.verify_has_metastore.verify_metastore()
1821

1922
@job_task(depends_on=[Assessment.crawl_groups, verify_metastore_attached])
@@ -56,7 +59,10 @@ def __init__(self):
5659

5760
@job_task(job_cluster="table_migration")
5861
def verify_metastore_attached(self, ctx: RuntimeContext):
59-
"""Verifies if a metastore is attached to this workspace. If not, the workflow will fail."""
62+
"""Verifies if a metastore is attached to this workspace. If not, the workflow will fail.
63+
64+
Account level groups are only available when a metastore is attached to the workspace.
65+
"""
6066
ctx.verify_has_metastore.verify_metastore()
6167

6268
@job_task(depends_on=[Assessment.crawl_groups, verify_metastore_attached])

0 commit comments

Comments
 (0)