cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
cancel
Showing results for 
Search instead for 
Did you mean: 

job init takes longer than notebook run

darshan
New Contributor III

I am trying to understand why running a job takes longer than running the notebook manually.

And if I try to run jobs concurrently using workflow or threads then is there a way to reduce job init time ?

3 REPLIES 3

Kaniz
Community Manager
Community Manager

Hi @darshan doshi​, Are you using the same cluster for notebook and job runs?

Vivian_Wilfred
Honored Contributor
Honored Contributor

Hi @darshan doshi​ , Jobs creates a job cluster in the backend before it starts the task execution and this cluster creation may take extra time when compared to running a notebook on a existing cluster.

1) If you run a multi-task job, you could select the same cluster for all the tasks to reduce job initialization time.

2) You can also use an interactive cluster for the job tasks. Interactive clusters can be kept "on" during your job run schedules so that all the job runs can quickly use the interactive cluster to execute the tasks.

Hope this helps 🙂

Hi @darshan doshi​,

Just a friendly follow-up. Did you saw the response from Vivian's? do you have any follow-up questions? lets us know if you still need help.

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.