diff --git a/acceptance/bundle/templates/default-python-classic/out.compare-vs-serverless.diff b/acceptance/bundle/templates/default-python-classic/out.compare-vs-serverless.diff index be69f94952..fd8ca073cf 100644 --- a/acceptance/bundle/templates/default-python-classic/out.compare-vs-serverless.diff +++ b/acceptance/bundle/templates/default-python-classic/out.compare-vs-serverless.diff @@ -13,10 +13,10 @@ + job_cluster_key: job_cluster python_wheel_task: package_name: my_default_python -@@ -39,3 +40,10 @@ +@@ -38,2 +39,11 @@ + # for more information on how to add other libraries. - whl: ../dist/*.whl - -- ++ + job_clusters: + - job_cluster_key: job_cluster + new_cluster: diff --git a/acceptance/bundle/templates/default-python/output/my_default_python/resources/my_default_python.job.yml b/acceptance/bundle/templates/default-python/output/my_default_python/resources/my_default_python.job.yml index b946b369a6..0d32bfff45 100644 --- a/acceptance/bundle/templates/default-python/output/my_default_python/resources/my_default_python.job.yml +++ b/acceptance/bundle/templates/default-python/output/my_default_python/resources/my_default_python.job.yml @@ -37,5 +37,3 @@ resources: # See https://docs.databricks.com/dev-tools/bundles/library-dependencies.html # for more information on how to add other libraries. - whl: ../dist/*.whl - - diff --git a/libs/template/templates/default-python/template/{{.project_name}}/resources/{{.project_name}}.job.yml.tmpl b/libs/template/templates/default-python/template/{{.project_name}}/resources/{{.project_name}}.job.yml.tmpl index f2bfce72b0..23dc883975 100644 --- a/libs/template/templates/default-python/template/{{.project_name}}/resources/{{.project_name}}.job.yml.tmpl +++ b/libs/template/templates/default-python/template/{{.project_name}}/resources/{{.project_name}}.job.yml.tmpl @@ -69,10 +69,9 @@ resources: # See https://docs.databricks.com/dev-tools/bundles/library-dependencies.html # for more information on how to add other libraries. - whl: ../dist/*.whl - - {{else}} - {{end -}} - {{- if not $with_serverless -}} +{{else}} + {{- end -}} + {{- if not $with_serverless}} job_clusters: - job_cluster_key: job_cluster new_cluster: @@ -81,4 +80,4 @@ resources: autoscale: min_workers: 1 max_workers: 4 - {{- end}} +{{end -}}