Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove try-except around verifying the migration progress prerequisites in the migrate-tables cli command #3439

Merged
merged 3 commits into from
Dec 12, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 1 addition & 10 deletions src/databricks/labs/ucx/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -687,16 +687,7 @@ def migrate_tables(
for workspace_context in workspace_contexts:
deployed_workflows = workspace_context.deployed_workflows

try:
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@FastLee : You added this in #2929. From the context of the PR and linked issue, I cannot determine why it is added in that PR. Do you remember why?

workspace_context.verify_progress_tracking.verify()
except RuntimeWarning:
logger.warning(
"We couldn't detect a successful run of the assessment workflow."
"The assessment workflow is a prerequisite for the migrate-tables workflow."
"It can be run by using the `ensure-assessment-run` command."
)
return

workspace_context.verify_progress_tracking.verify()
deployed_workflows.run_workflow("migrate-tables")

tables = list(workspace_context.tables_crawler.snapshot())
Expand Down
Loading