cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
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
Contributor III
Contributor III

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

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.