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