I'd like to be able to list all my running(*) jobs from command-line. (*) running as in "not finished yet" = including all the interim statuses like queue, scheduled and such.
(In reply to Ales Zelinka from comment #0) > I'd like to be able to list all my running(*) jobs from command-line. > > (*) running as in "not finished yet" = including all the interim statuses > like queue, scheduled and such. I think I would rather have "bkr job-list --mine" rather than a separate command.
Yup, that's pretty much what I had in mind: a new parameter for "bkr job-list" that would return running jobs. E.g. --running or a bit more lowlevel (and powerful) --status=running,queued,scheduled,... This parameter when combined with --mine would then do what I want: return all my running jobs.
This bug has already been fixed by bug 822387.
The piece we are still missing is filtering for running (actually "incomplete") jobs.
(In reply to Dan Callaghan from comment #4) > The piece we are still missing is filtering for running (actually > "incomplete") jobs. Yeah, you are right. I guess we could have a new option --status=New,Processed,Queued,Scheduled,Running... which matches the filter we have on the jobs page.
Let's start simple and just add --finished (Completed, Aborted, Cancelled) and --unfinished (everything else).
*** Bug 1394237 has been marked as a duplicate of this bug. ***
on gerrit: https://gerrit.beaker-project.org/#/c/5456/
Verified this issue. The result is PASS. Version: beaker-client-24.0-0.git.210.01bf details: $ bkr job-list --finished -o huiwang ["J:11829", "J:11753", "J:11736", "J:11735", "J:11734", "J:11733", "J:11732", .. $ bkr job-list --unfinished -o jenkins/beaker-jenkins.rhev-ci-vms.eng.rdu2.redhat.com ["J:11890", "J:11889", "J:11888", "J:11887", "J:11886", "J:11885", "J:11882", "J:11881", "J:11879"] $ bkr job-list --finished --unfinished Usage: bkr job-list [options] ... bkr: error: Only one of --finished or --unfinished may be specified Just one concern: In production, there will list about 252860 finished jobs if when end user run $bkr job-list with no --owner.
Beaker 24.0 has been released.
Brilliant, works for me. Thanks!