Skip to content

Commit

Permalink
Merge pull request #148 from TheRoddyWMS/default-to-5-retries-in-lsf-…
Browse files Browse the repository at this point in the history
…commands

Increased default (still not configurable) LSB_NTRIES from 1 to 5 ...
  • Loading branch information
vinjana committed Jul 7, 2020
2 parents f9374a2 + 48a2171 commit cc0f191
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,16 @@ class LSFJobManager extends AbstractLSFJobManager {

static final DateTimeHelper dateTimeHelper = new DateTimeHelper()

/**
* LSF supports retrying the submission command multiple times. The default is to retry for a very long time,
* which is also blocking the execution of the thread. A single retry usually works but is failing
* too frequently, in particular if there is load on the LSF system. The current number of LSB_NTRIES is a
* compromise between blocking endlessly and having no failover.
*
* @return a Bash environment variable declaration affecting LSF commands.
*/
final static String getEnvironmentString() {
return "LSB_NTRIES=1"
return "LSB_NTRIES=5"
}

LSFJobManager(BEExecutionService executionService, JobManagerOptions parms) {
Expand Down

0 comments on commit cc0f191

Please sign in to comment.