Skip to content

Commit 21fac39

Browse files
authored
Fix: App Deployment
* add cancel on concurreny * trying other fix * commenting deploy app step * fix * fix * reverted * try * test * test * test * test * test
1 parent bad0a7e commit 21fac39

3 files changed

Lines changed: 18 additions & 16 deletions

File tree

.github/workflows/databricks-asset-bundle-deploy.yml

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ env:
1919
jobs:
2020
deploy-bundle:
2121
runs-on: ubuntu-latest
22+
23+
concurrency:
24+
group: deploy-app-dbx-job-executor-app-dev
25+
cancel-in-progress: true
2226

2327
steps:
2428
- name: Checkout code
@@ -51,18 +55,19 @@ jobs:
5155
- name: Deploy bundle
5256
run: |
5357
databricks bundle deploy -t dev
58+
databricks bundle run databricks_job_executor_app -t dev
5459
databricks bundle summary
5560
databricks bundle resources
5661
57-
- name: Sync app source to workspace
58-
working-directory: databricks_job_executor
59-
run: |
60-
WORKSPACE_PATH="/Workspace/Shared/databricks_job_executor"
61-
databricks workspace mkdirs "$WORKSPACE_PATH" || true
62-
databricks workspace import-dir . "$WORKSPACE_PATH" --overwrite
62+
# - name: Sync app source to workspace
63+
# working-directory: databricks_job_executor
64+
# run: |
65+
# WORKSPACE_PATH="/Workspace/Shared/databricks_job_executor"
66+
# databricks workspace mkdirs "$WORKSPACE_PATH" || true
67+
# databricks workspace import-dir . "$WORKSPACE_PATH" --overwrite
6368

64-
- name: Deploy app
65-
working-directory: databricks_job_executor
66-
run: |
67-
databricks apps deploy dbx-job-executor-app --source-code-path /Workspace/Shared/databricks_job_executor
68-
databricks apps update dbx-job-executor-app --default-source-code-path /Workspace/Shared/databricks_job_executor || true
69+
# - name: Deploy app
70+
# working-directory: databricks_job_executor
71+
# run: |
72+
# databricks apps deploy dbx-job-executor-app-2 --source-code-path /Workspace/Shared/databricks_job_executor
73+
# databricks apps update dbx-job-executor-app-2 --default-source-code-path /Workspace/Shared/databricks_job_executor || true

databricks_job_executor/app.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,7 @@ command:
77
- streamlit
88
- run
99
- streamlit_app/app.py
10-
- --server.port=8501
11-
- --server.address=0.0.0.0
12-
- --server.headless=true
13-
- --server.enableCORS=false
10+
1411
env:
1512
- name: DATABRICKS_RUNTIME_ENV
1613
value: "app"

resources/app.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
resources:
22
apps:
33
databricks_job_executor_app:
4-
name: dbx-job-executor-app
4+
name: dbx-job-executor-app-2
55
description: Streamlit application for executing and monitoring Databricks migration jobs
66
source_code_path: ../databricks_job_executor

0 commit comments

Comments
 (0)