cancel
Showing results for 
Search instead for 
Did you mean: 
Get Started Discussions
Start your journey with Databricks by joining discussions on getting started guides, tutorials, and introductory topics. Connect with beginners and experts alike to kickstart your Databricks experience.
cancel
Showing results for 
Search instead for 
Did you mean: 

When does the cost of JOB COMPUTE start to be calculated?

himanmon
New Contributor III

I'm trying to run a workflow with job compute.
Job compute needs to be pending for about 5 to 7 minutes before executing the workflow. I think it takes time to find a suitable instance in the cloud, configure the environment, install libraries, etc.

And Databricks charges us by the time we use it. So, is the 5-7 minutes required for pending included in the cost? Or is only the time when pending ends and the workflow actually starts included in the cost?

Thank you for your answer.

1 ACCEPTED SOLUTION

Accepted Solutions

jacovangelder
Honored Contributor

There is a big discrepancy to take note of here. It is the difference between Databricks job costs (DBUs) and billing for the cloud provider (the actual VM doing the the work). 

Billing for the Databricks job starts when the Spark context is being initiated (you can see so in the event log). It is usually at 4-5 minutes in. 
Billing for the cloud provider starts the moment you press the start button on your pipeline (this will provision the VM in 5 minutes). 

Hope this helps! 

View solution in original post

3 REPLIES 3

Walter_C
Databricks Employee
Databricks Employee

The cost of JOB COMPUTE starts to be calculated from the moment the job starts running.
You can monitor the cost of jobs that use serverless compute for workflows by querying the billable usage system table.

himanmon
New Contributor III

Thank you for your answer. That means pending time is also included in the cost, right?

jacovangelder
Honored Contributor

There is a big discrepancy to take note of here. It is the difference between Databricks job costs (DBUs) and billing for the cloud provider (the actual VM doing the the work). 

Billing for the Databricks job starts when the Spark context is being initiated (you can see so in the event log). It is usually at 4-5 minutes in. 
Billing for the cloud provider starts the moment you press the start button on your pipeline (this will provision the VM in 5 minutes). 

Hope this helps! 

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