Commit d5ba0e7
committed
flux-queue: report enabled/started status in
Problem: `flux queue list` only lists configuration information for
queues, while `flux queue status` is required to determine if queues
are enabled and started. Users should not need to run two commands
to get necessary queue information.
Fetch the queue status from `job-manager.queue-status` for each
configured queue, or the anonymous queue if no queues are configured.
Add queue "submission" and "scheduling" fields which report
enabled/disabled and started/stopped respectively. Additionally,
add shorter "enabled" and "started" fields which report a single
character "✔/y" if true or "✗/n" if false. Support color output
for the enabled and started fields.
Adjust the default output format to include the enabled/started
status for each queue in color. This gives users a quick way to
determine the status of queues from `flux queue list`.
Fixes #6145flux queue list
1 parent 4ccf427 commit d5ba0e7
1 file changed
+55
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| 114 | + | |
| 115 | + | |
114 | 116 | | |
115 | 117 | | |
116 | 118 | | |
| |||
238 | 240 | | |
239 | 241 | | |
240 | 242 | | |
241 | | - | |
| 243 | + | |
242 | 244 | | |
243 | 245 | | |
244 | 246 | | |
245 | 247 | | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
246 | 252 | | |
247 | 253 | | |
248 | 254 | | |
| |||
263 | 269 | | |
264 | 270 | | |
265 | 271 | | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
266 | 303 | | |
267 | 304 | | |
268 | 305 | | |
269 | 306 | | |
270 | 307 | | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
271 | 317 | | |
272 | 318 | | |
273 | 319 | | |
| |||
281 | 327 | | |
282 | 328 | | |
283 | 329 | | |
| 330 | + | |
284 | 331 | | |
285 | 332 | | |
286 | 333 | | |
| |||
297 | 344 | | |
298 | 345 | | |
299 | 346 | | |
| 347 | + | |
300 | 348 | | |
301 | | - | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
302 | 352 | | |
303 | 353 | | |
304 | | - | |
| 354 | + | |
| 355 | + | |
305 | 356 | | |
306 | 357 | | |
307 | 358 | | |
| |||
0 commit comments