This is sort of a meta-issue: a user mentioned to me that it would be nice if they had more examples of how to customize output from Flux commands.
An example of this is the default in flux-jobs(1):
{id.f58:>12} ?:{queue:<8.8} {username:<8.8} {name:<10.10+} \
{status_abbrev:>2.2} {ntasks:>6} {nnodes:>6h} \
{contextual_time!F:>8h} {contextual_info}
I wonder if it would be helpful (even though it is the default) to include some sample output with this, and maybe another example. These are well documented and familiar syntax for Python users but maybe there's an opportunity to do better.
Maybe this belongs somewhere other than the manpages, too.
The user specifically mentioned wanting the ability to have a one-liner that takes a jobid and returns its current state (running, queued, etc). The easiest way I thought to do this was flux jobs --format="{status}" -n JOBID.
This is sort of a meta-issue: a user mentioned to me that it would be nice if they had more examples of how to customize output from Flux commands.
An example of this is the default in flux-jobs(1):
I wonder if it would be helpful (even though it is the default) to include some sample output with this, and maybe another example. These are well documented and familiar syntax for Python users but maybe there's an opportunity to do better.
Maybe this belongs somewhere other than the manpages, too.
The user specifically mentioned wanting the ability to have a one-liner that takes a jobid and returns its current state (running, queued, etc). The easiest way I thought to do this was
flux jobs --format="{status}" -n JOBID.