cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

How to get Workflow status and error description programmatically ?

WhistlePodu
New Contributor

Hi,

I want to take some basic info by running workflow and populate a table with those data. I want to add logic programmatically in a notebook and will run it by attaching it in a task of workflow.

Information required to be populated in table:

  • Job id
  • Job name
  • Workflow run status (Success or Failed)
  • Error description in case of failure

I am able to get job id and job name using parameters in workflow task but not able to get run status and error description.

Please help me to get the solution for it.

1 REPLY 1

arpit
Databricks Employee
Databricks Employee

@WhistlePodu You can review the jobs API for getting the other fields like jobs status etc

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group