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

Refactor installer to separate workflows methods from the installer class #1055

Merged
merged 27 commits into from
Mar 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
5 changes: 3 additions & 2 deletions src/databricks/labs/ucx/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
from databricks.labs.ucx.hive_metastore.table_migrate import TablesMigrate
from databricks.labs.ucx.hive_metastore.table_move import TableMove
from databricks.labs.ucx.install import WorkspaceInstallation
from databricks.labs.ucx.installer.workflows import WorkflowsInstallation
from databricks.labs.ucx.workspace_access.clusters import ClusterAccess
from databricks.labs.ucx.workspace_access.groups import GroupManager

Expand All @@ -41,7 +42,7 @@
@ucx.command
def workflows(w: WorkspaceClient):
"""Show deployed workflows and their state"""
installation = WorkspaceInstallation.current(w)
installation = WorkflowsInstallation.current(w)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
installation = WorkflowsInstallation.current(w)
installation = Workflows.current(w)

logger.info("Fetching deployed jobs...")
print(json.dumps(installation.latest_job_status()))

Expand Down Expand Up @@ -162,7 +163,7 @@ def repair_run(w: WorkspaceClient, step):
"""Repair Run the Failed Job"""
if not step:
raise KeyError("You did not specify --step")
installation = WorkspaceInstallation.current(w)
installation = WorkflowsInstallation.current(w)
logger.info(f"Repair Running {step} Job")
installation.repair_run(step)

Expand Down
Loading
Loading