Field added to jobs API response
What does this MR do and why?
filtered out all jobs which reached or lapsed timeout and find out which jobs are stucked or hanged by filtering with status. most of time running jobs are stuck so use running scope. filter output should empty if no job is stuck
References
Screenshots or screen recordings
| field added | filter |
|---|---|
How to set up and validate locally
- start gdk
- fetch branch
- to find all job reached timeout use this : curl --header "PRIVATE-TOKEN: glpat-jw1lPpc........." "http://gdk.test:3000/api/v4/projects/2/jobs?timeout_reached=true&per_page=100&page=1"
- job which missing timeout or hanged or stuck use this: curl --header "PRIVATE-TOKEN: glpat-jw1lPpcRD8r........." "http://gdk.test:3000/api/v4/projects/2/jobs?timeout_reached=true&scope=running&per_page=100&page=1"
query plan:query.txt
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
related issue:#535994
Edited by nagraj raikar