cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

Job cluster support in jobs/runs/submit API

hanish
New Contributor II

We are using jobs/runs/submit API of databricks to create and trigger a one-time run with new_cluster and existing_cluster configuration.

We would like to check if there is provision to pass "job_clusters" in this API to reuse the same cluster across multiple tasks of job?

We are not able to find this in Databricks API Doc.

5 REPLIES 5

daniel_sahal
Esteemed Contributor

@Hanish Bansal​ 

Reading Jobs API updates, they've added support for shared job cluster.

https://learn.microsoft.com/en-us/azure/databricks/workflows/jobs/jobs-api-updates?source=recommenda...

To configure shared job clusters, include a JobCluster array in the JobSettings object. You can specify a maximum of 100 clusters per job. The following is an example of an API 2.1 response for a job configured with two shared clusters

hanish
New Contributor II

I tried with a sample but got error "Shared job cluster feature is not supported in runs/submit API."

I found the same in documentation "https://learn.microsoft.com/en-us/azure/databricks/workflows/jobs/jobs-api-updates?source=recommendations#--runs-submit" that runs submit request does not support shared job clusters.

Not sure if there is any specific reason to not supporting shared job clusters in this API.

Anonymous
Not applicable

@Hanish Bansal​ Shared job cluster for  jobs/runs/submit API is not supported at the moment.

giladba
New Contributor III

Hi, 
Any update on this issue? Is a shared job cluster supported for the jobs/runs/submit API or planned to be supported in the near future?

Nagrjuna
New Contributor II

Hi, 

Any update on the above mentioned issue? Unable to submit a one time new job run (api/2.0 or 21/jobs/runs/submit) with shared job cluster or one new cluster has to be used for all TASKs in the job

 

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group