Skip to contents

Retrieve the output and metadata of a single task run. When a notebook task returns a value through the dbutils.notebook.exit() call, you can use this endpoint to retrieve that value. Databricks restricts this API to returning the first 5 MB of the output. To return a larger result, you can store job results in a cloud storage service.

Usage

get_job_run_output(client, run_id)

jobsGetRunOutput(client, run_id)

Arguments

client

Required. Instance of DatabricksClient()

run_id

Required. The canonical identifier for the run.

Details

This endpoint validates that the run_id parameter is valid and returns an HTTP status code 400 if the run_id parameter is invalid. Runs are automatically removed after 60 days. If you to want to reference them beyond 60 days, you must save old run results before they expire.