diff --git a/databricks.yml b/databricks.yml index 09fe60a..177377c 100644 --- a/databricks.yml +++ b/databricks.yml @@ -9,15 +9,12 @@ targets: mode: development default: true workspace: - host: https://your-workspace.cloud.databricks.com/ # change to your own host URL - resources: - apps: - hello-world-app: - name: "hello-world-app-dev" + host: ${var.databricks_host} # change to your own host URL + prod: mode: production workspace: - host: https://your-workspace.cloud.databricks.com/ # change to your own host URL + host: ${var.databricks_host} # change to your own host URL root_path: /Workspace/Users/${workspace.current_user.userName}/.bundle/${bundle.name}/${bundle.target} permissions: - user_name: ${workspace.current_user.userName} diff --git a/src/app/app.py b/src/app/app.py index 4c2ef45..105a183 100644 --- a/src/app/app.py +++ b/src/app/app.py @@ -7,7 +7,7 @@ w = WorkspaceClient() -if st.button(f"Trigger job with ID {JOB_ID}"): +if st.button(f"Trigger job with the ID: {JOB_ID}"): try: response = w.jobs.run_now(job_id=JOB_ID) st.success("Job started successfully!")