Commit 4b264f8
committed
python: accept multiple queues in job_list(), JobList
Problem: There is no way to easily get a list of jobs for
multiple queues at once with the Python flux.job.job_list() and
flux.job.JobList.
If the queue parameter to `job_list()` is iterable and not a string,
pass it along to the queue constraint as a list, which is the same
as an "or" between all queue elements. Since JobList calls job_list()
it also supports a list of queues.1 parent 3dc3207 commit 4b264f8
1 file changed
+7
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
58 | 59 | | |
59 | 60 | | |
60 | 61 | | |
61 | | - | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
62 | 67 | | |
63 | 68 | | |
64 | 69 | | |
| |||
201 | 206 | | |
202 | 207 | | |
203 | 208 | | |
204 | | - | |
| 209 | + | |
205 | 210 | | |
206 | 211 | | |
207 | 212 | | |
| |||
0 commit comments