-
Bug
-
Resolution: Not A Defect
-
Minor
-
None
from cliffmeyers:
Hitting the /runs REST API for a Pipeline shows all the job runs, including those that probably should be in the /queue. The status of all jobs is "RUNNING" which also feels a bit misleading.
from vivek
What needs to happen is that if a build item is in queue, should not be returned. We should not be mixing run object with queue because they are vastly different. There is already an API /pipeline/:id/activities Ivan implemented to give all runs and items in queue, so if this is what you look for you can use that.
- is related to
-
JENKINS-37337 Pipeline scripts that appear as "queued" in classic UI are not returned from /queue API
-
- Closed
-
cliffmeyers
Based on what I discovered after experimenting with pipeline/nodes and its behavior w.r.t being in queue and its state running as well as being in queue, I think our api implementation tries to do such re-arrangment of pipeline run state is recipe for more confusion and errors. See my last mail. Fact that a pipeline is in RUNNING state is truth and should be represented that way because its indeed running. At the same time, based on how the script is, part of it might be in queue. I am not really sure what else can we do really.