Capture error for databricks job

sukanya09
New Contributor II

Greetings !

 

We have created a Databricks job using Notebook. This notebook has 6 cells . Can we capture the Success and failure (along with error)  and Store it into for monitoring and analysis . Ex if we want to capture the below error 

 

sukanya09_0-1721831111079.png

 

szymon_dybczak
Esteemed Contributor III

Hi @sukanya09 ,

You can use jobs API, each run will have information about status of teach task in the job

https://docs.databricks.com/api/workspace/jobs/getrunoutput