Query a queue for a list of job ids and their status
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Testflinger |
New
|
Undecided
|
Unassigned |
Bug Description
It would be nice to be able to query a specific queue and get a list of job ids and their status.
For example:
$testflinger-cli myqueue listjobs
In Progress:
<Request Date/time> JOB_ID_1
In Queue:
<Request Date/time> JOB_ID_2
<Request Date/time> JOB_ID_3
Completed:
<Request Date/time> JOB_ID_0
Submitting will already tell you how many jobs are in queue, so this could expand on that to let you know what their IDs are so you can set up polling for them to watch as they start happening, or for logging purposes, or if you've had an automation snafu that launched 5 jobs that you need to cancel.
The "Completed" list is a bonus, but could be nice to display the last 5 jobs (if that data is actually stored beyond the most recent completed job) so you can retrieve artificats. This is helpful if you kick off multiple jobs at once... for example, an SRU run where you submit 4 test runs (GA and HWE kernels for 2 releases) at the same time so they can run in succession. Then you can look at this list, see the last four jobs and pull the artifacts if necessary to debug failures.