Skip to main content

Get job run output

Read what a finished job run produced: the notebook's result, the error and its trace, and the logs, for each task of the run.

Command in the Databricks toolkit · id ooa.databricks/get_run_output · 5 inputs (1 required), 5 outputs

Inputs​

InputTypeRequiredDefaultWhat it is
Workspace address (URL)StringNoWorkspace address, e.g. https://adb-1234567890123456.7.azuredatabricks.net or https://dbc-a1b2c3d4-e5f6.cloud.databricks.com.
Run IDStringYesRun id from Run job now.
Access tokenCredentialNoDatabricks personal access token or OAuth token from the vault. Or leave it empty and choose a connection that signs in, which gets and renews the token.
Client IDStringNoApplication (client) id of a service principal, to sign in with OAuth instead of a personal access token (G6).
Client secretCredentialNoThe service principal's OAuth secret from the vault (G6).

Outputs​

OutputTypeWhat it is
resultStringThe notebook's exit value (dbutils.notebook.exit); for several tasks, the first task's that has one.
errorStringWhy the run failed, when it failed.
error_traceStringThe error's stack trace, when there is one.
logsStringOutput of a Python, JAR or spark-submit task (the last 5 MB).
tasksTableOne row per task: task_key, run_id, result_state, result, error, logs.