Databricks
Inspect a Databricks job run
Databricks exposes job-run metadata through Jobs API 2.2 and the Jobs & Pipelines interface. The API works well for automation and the interface shows graph, timeline, task status, logs, and run details.
Documentation reviewed · 2 methods with sources
Ways to do it
API
GET /api/2.2/jobs/runs/get
Retrieve metadata for one run by run_id, including status, task details, and the run page URL.
Read source: Databricks Get a single job run API- Requirements
- A Databricks workspace URL, an authenticated workspace token or OAuth credential with the jobs API scope, and a run_id for a job the caller can view.
- Limitations
- Large task, job-cluster, parameter, or repair-history arrays are paginated after 100 elements. Follow next_page_token with page_token to read the remaining entries.
Example shell
curl --fail --header "Authorization: Bearer $DATABRICKS_TOKEN" "$DATABRICKS_HOST/api/2.2/jobs/runs/get?run_id=$RUN_ID"Interface
Jobs & Pipelines → run details
Open Jobs & Pipelines, select a job, open the Runs tab, and select a run to inspect graph, timeline, task status, output, and logs.
Read source: Databricks monitor Lakeflow Jobs- Requirements
- A Databricks workspace login and CAN VIEW on the job. CAN VIEW grants access to job run results, details, history, and status.
- Limitations
- Databricks maintains job-run history for up to 60 days. Export results if the run must be retained longer.