Retrieve workflow results
This recipe retreives the results of a Databricks Workflows job task run using the Databricks SDK for Python..
Code snippet
app.py
from databricks.sdk import WorkspaceClient
w = WorkspaceClient()
task_run_id = "293894477334278"
results = w.jobs.get_run_output(task_run_id)
print(results)
Resources
Permissions
Your app service principal needs the following permissions:
CAN VIEW
permission on the job
See Control access to a job for more information.
Dependencies
- Databricks SDK for Python -
databricks-sdk
- Dash -
dash
requirements.txt
databricks-sdk
dash