Project

General

Profile

API to set RetryCount

Added by Scardaci Diego over 13 years ago

Dear All,
can I set the gLite RetryCount value via API (not using the JSAGA configuration file) when I submit a job?

Thanks in advance for your help.

Regards,
Diego Scardaci


Replies (1)

RE: API to set RetryCount - Added by Reynaud Sylvain over 13 years ago

Hi Diego,

What can be done using the JSAGA configuration file can also be done through the SAGA API by modifying context objects with non-standard (i.e. JSAGA-specific) attribute names such as UrlPrefix, BaseUrlIncludes, JobServiceAttributes...

See [[http://grid.in2p3.fr/jsaga/users-faq.html#configure-with-SAGA]].
The jsaga-help with option "--session" can help you to do that, because it dumps the JSAGA configuration file as a set of SAGA context attributes.

So, to set the RetryCount value via SAGA API, you should add something like this :
yourContext.setVectorAttribute("JobServiceAttributes", new String[]{"wms.RetryCount=2", ...});

Please notice that :
  • this breaks compliance with the SAGA standard (because of using non-standard attribute names).
  • this setting is associated to the JobService instance, so it will be applied to all the jobs created with this instance.

Regards,
Sylvain

    (1-1/1)