2012/3/29 Joseph Bester <[email protected]>
> On Mar 29, 2012, at 2:29 PM, Jose Caballero wrote:
> > Hi,
> >
> > I have a final question about default values.
> > Some of them seems to default to None (or maybe it is just they do not
> have a default).
> > One of them is, for example, maxCpuTime.
> >
> > What I need to know is that if not using it at all is the same that
> doing this
> >
> > globusrsl = (...) (maxCpuTime=None) (...)
> >
> > or maybe
> >
> > globusrsl = (...) (maxCpuTime=) (...)
> >
> >
> > Again, thanks a lot in advance.
> > Cheers,
> > Jose
>
>
> RSL attributes (mostly) act as constraints on the job which are passed to
> the local resource manager. If one of the RSL attributes is not present in
> the job submit RSL, and there is not default defined by GRAM, then the
> constraint will not be included in the job passed to the local resource
> manager. There might be local policies which override GRAM and provide
> defaults, or sites may operate without that constraint, or it might not
> make sense for a particular manager implementation.
>
> Neither of the syntaxes you propose above are accepted by GRAM. To use the
> default (or to not specify the attribute), simply omit it from the RSL.
> There is currently no way to say "don't use the default" from the client
> side. The default could be removed by modifying the service's rvf
> definition of the RSL attributes for that site or LRM.
>
> Joe
Thanks a lot for the explanation.
So, just to let you know why I was asking about that...
We create the condor submission file in our application from info in a
config file, which we parse with python ConfigParser.
I was just wondering if I could create the entire globusrsl line using
interpolation, and having a default value for all possible GRAM variables.
Like...
foo=<default_foo>
var=<default_var>
globusrsl = (%(foo)s) (%(var)s)
Interpolation only works if all fields have some value.
Thanks a lot for your prompt responses.
Jose