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
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Workspace address (URL) | String | No | Workspace address, e.g. https://adb-1234567890123456.7.azuredatabricks.net or https://dbc-a1b2c3d4-e5f6.cloud.databricks.com. | |
| Run ID | String | Yes | Run id from Run job now. | |
| Access token | Credential | No | Databricks 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 ID | String | No | Application (client) id of a service principal, to sign in with OAuth instead of a personal access token (G6). | |
| Client secret | Credential | No | The service principal's OAuth secret from the vault (G6). |
Outputs
| Output | Type | What it is |
|---|---|---|
| result | String | The notebook's exit value (dbutils.notebook.exit); for several tasks, the first task's that has one. |
| error | String | Why the run failed, when it failed. |
| error_trace | String | The error's stack trace, when there is one. |
| logs | String | Output of a Python, JAR or spark-submit task (the last 5 MB). |
| tasks | Table | One row per task: task_key, run_id, result_state, result, error, logs. |