Skip to content

Commit cd9b811

Browse files
committed
Update cli command
1 parent 118b2f0 commit cd9b811

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/databricks/labs/ucx/cli.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,11 +230,12 @@ def ensure_assessment_run(w: WorkspaceClient, run_as_collection: bool = False, a
230230
# Note: will block if the workflow is already underway but not completed.
231231
if deployed_workflows.validate_step("assessment") and not force_refresh:
232232
logger.info(f"The assessment workflow has successfully completed in workspace: {workspace_id}")
233+
elif force_refresh:
234+
logger.info(f"Re-running assessment workflow in workspace: {workspace_id}")
235+
deployed_workflows.run_workflow("assessment", skip_job_wait=run_as_collection, named_parameters={"force_refresh": "true"})
233236
else:
234237
logger.info(f"Starting assessment workflow in workspace: {workspace_id}")
235238
# If running for a collection, don't wait for each assessment job to finish as that will take a long time.
236-
deployed_workflows.run_workflow("assessment", skip_job_wait=run_as_collection)
237-
238239

239240
@ucx.command
240241
def update_migration_progress(

0 commit comments

Comments
 (0)