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: 

Databricks Job Timeout after 20 minutes

ibrahim21124
New Contributor III

Hello,

I have created a job with no timeout-seconds provided. But I am getting Error: Timed out within 20 minutes. I am running the below commands using Bash@3 task in ADO Pipeline yaml file. The code for the same is given below

task: Bash@3
  timeoutInMinutes: '0'
  displayName: 'Run Databricks Tests Notebook'
  inputs:
    targetType: 'filePath'
    filePath: './ci/createjob.sh'
    arguments: '$(cluster-id) $(unit-folder) $(component-folder) $(Build.BuildId) $(Build.BinariesDirectory)'
 

This is the json I am passing to create a job.

databricks jobs create --json {
    "name": "Test Job",
    "timeout_seconds": 0,
    "tasks":
    [
        {
            "task_key": "abc",
            "existing_cluster_id": "cluster-id",      
            "notebook_task": {
                "notebook_path": "<path-to-notebook>",
                "source": "WORKSPACE"
                }
        }
}

Also I am starting the job with databricks run-now CLI Command 
databricks jobs run-now --json '{
  "job_id": '$JOB_ID',
  "notebook_params": {
      "param": "value"
  }
}'
 
Is there a way I can check where is this failing after 20 minutes?
1 ACCEPTED SOLUTION

Accepted Solutions

Hey Fatma,

Thanks for your response. I got the solution. Actually when using Databricks CLI and triggering run-now from CLI it is having default timeout of 20 minutes. I have changed that and now it is working as expected.

Thanks,

Ibrahim

View solution in original post

1 REPLY 1

Hey Fatma,

Thanks for your response. I got the solution. Actually when using Databricks CLI and triggering run-now from CLI it is having default timeout of 20 minutes. I have changed that and now it is working as expected.

Thanks,

Ibrahim

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