You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The use of "system" attributes under attributes.system in jobspec may become more prevalent as we move forward. E.g. one use case is to set system jobspec attributes that optionally affect the behavior of the job prolog and epilog.
However, the current method to set these attributes requires the use of a long option --setattr and explicit designation of the attribute under the system dictionary, e.g. --setattr=system.prolog.clear-ssd. This could get tedious if a user is setting many of these attributes.
We should add a new option that sets system attributes specifically, perhaps with a short option equivalent (similar to what these commands provide for -o, --setopt=OPTION.
Another idea might be to have the system. prefix implied if the attribute doesn't already start with system. or user.. I'm just not sure if that approach would get us into trouble later.
The text was updated successfully, but these errors were encountered:
I like these modifications to the simplify the --setattr option and make it more usable. @grondo also suggested having it default to 1 if no option is given, which would simplify things even further. So, --setattr=system.clear-ssd=1 could be simplified to --setattr=clear-ssd.
grondo
added a commit
to grondo/flux-core
that referenced
this issue
Aug 10, 2022
Problem: The flux-mini --setattr option is almost always used to set
attributes in the system dictionary, and therefore its use can be
very repetitive and inefficient.
Prepend "system." to the KEY specified in --setattar=KEY=VAL when
it doesn't already begin with "system." or "user.". To force
a different top-level target value, also allow keys to be prefixed
with "." (e.g. --setattr=.foo will set attributes.foo=1).
Fixesflux-framework#4481
grondo
added a commit
to grondo/flux-core
that referenced
this issue
Aug 10, 2022
Problem: The flux-mini --setattr option is almost always used to set
attributes in the system dictionary, and therefore its use can be
very repetitive and inefficient.
Prepend "system." to the KEY specified in --setattar=KEY=VAL when
it doesn't already begin with "system." or "user.". To force
a different top-level target value, also allow keys to be prefixed
with "." (e.g. --setattr=.foo will set attributes.foo=1).
Fix one use of --setattr=foo=val in the testsuite with
--setattr=.foo=val.
Fixesflux-framework#4481
The use of "system" attributes under
attributes.system
in jobspec may become more prevalent as we move forward. E.g. one use case is to set system jobspec attributes that optionally affect the behavior of the job prolog and epilog.However, the current method to set these attributes requires the use of a long option
--setattr
and explicit designation of the attribute under thesystem
dictionary, e.g.--setattr=system.prolog.clear-ssd
. This could get tedious if a user is setting many of these attributes.We should add a new option that sets system attributes specifically, perhaps with a short option equivalent (similar to what these commands provide for
-o, --setopt=OPTION
.Another idea might be to have the
system.
prefix implied if the attribute doesn't already start withsystem.
oruser.
. I'm just not sure if that approach would get us into trouble later.The text was updated successfully, but these errors were encountered: