Skip to content

Commit

Permalink
remove square brackets from job name
Browse files Browse the repository at this point in the history
  • Loading branch information
BEFH committed Mar 7, 2024
1 parent bb5c4f9 commit eebbd3f
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,13 @@ class LsfExecutor extends AbstractGridExecutor {
return result
}

@Override
String sanitizeJobName( String name ) {
// some implementations do not allow square brackets in the job name -- see #271
name = name.replace('[','').replace(']','')
// LSF does not allow more than 4094 characters for the job name string
name.size()>4094 ? name.substring(0,4094) : name
}

/**
* The command line to submit this job
Expand Down

0 comments on commit eebbd3f

Please sign in to comment.