/api/2.1/jobs/runs/get-output api response
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2024 12:00 AM
/api/2.1/jobs/runs/get-output what are the possbile status or state values of the api?
I am trying to check the status of my job run based on run id. but there is not enough detail on the response body which contains the status of the run.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2024 12:02 AM
@monil
It's documented well in the API documentation.
https://docs.databricks.com/api/workspace/jobs/getrunoutput
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2024 03:33 AM
Thanks @daniel_sahal , I am confused about the state values
My use case: I want to fetch the latest status of the a particular job like (success or failed)
Here I can see the state but it doesn't specify the success or failure of the job it just show Terminated in both success or failure
Also, what I see in my browser is different from what you have shared
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2024 04:15 AM - edited 09-04-2024 04:16 AM
You are looking at depracated state field. You should look for status field and that's what @daniel_sahal shared with you on his screenshot.
In status field you have information about job run state as well as termination details info.
So you can check if run was successful if your job run is in status TERMINATED or TERMINATING and termination details returns SUCCESS

