-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdbx_deployment.yml.j2
40 lines (39 loc) · 1.37 KB
/
dbx_deployment.yml.j2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
build:
python: "pip"
environments:
default:
workflows:
- name: "train_and_deploy_recommender_model"
job_clusters:
- job_cluster_key: "recommender_cluster"
new_cluster:
spark_version: "12.2.x-cpu-ml-scala2.12"
num_workers: 1
node_type_id: "Standard_D4s_v5"
spark_env_vars:
DATABRICKS_HOST: "{{ env['DATABRICKS_HOST'] }}"
DATABRICKS_TOKEN: {{ '"{{secrets/keyvault/DatabricksToken}}"' }}
GIT_SHA: "{{ env['GIT_SHA'] }}"
tasks:
- task_key: "train_model"
job_cluster_key: "recommender_cluster"
spark_python_task:
python_file: "file://recommender/train_recommender.py"
parameters: [
"--run_id",
"{{parent_run_id}}",
"--job_id",
"{{job_id}}"
]
- task_key: "deploy_model"
job_cluster_key: "recommender_cluster"
spark_python_task:
python_file: "file://recommender/deploy_recommender.py"
parameters: [
"--run_id",
"{{parent_run_id}}",
"--job_id",
"{{job_id}}"
]
depends_on:
- task_key: "train_model"