1. Learn
  2. /
  3. Courses
  4. /
  5. Databricks with the Python SDK

Connected

Exercise

Listing Databricks jobs

Now, we will list the Databricks jobs that have been created in our workspace. The WorkspaceClient jobs API exposes a .list() method that can be used to list all jobs in the authenticated workspace.

Instructions

100 XP
  • Retrieve all jobs in the workspace using the WorkspaceClient.
  • Iterate through up to 10 jobs and print each job's job_id attribute.