Merge pull request #760 from broadinstitute/ks_queue_patches
Queue patches
This commit is contained in:
commit
37464c38f2
|
|
@ -36,7 +36,7 @@ import org.ggf.drmaa.Session
|
|||
class GridEngineJobRunner(session: Session, function: CommandLineFunction) extends DrmaaJobRunner(session, function) with Logging {
|
||||
// Grid Engine disallows certain characters from being in job names.
|
||||
// This replaces all illegal characters with underscores
|
||||
protected override val jobNameFilter = """[\n\t\r/:,@\\*?]"""
|
||||
protected override val jobNameFilter = """[\s/:,@\\*?]"""
|
||||
protected override val minRunnerPriority = -1023
|
||||
protected override val maxRunnerPriority = 0
|
||||
|
||||
|
|
|
|||
|
|
@ -33,14 +33,22 @@ import io.Source
|
|||
* A collection of various system utilities.
|
||||
*/
|
||||
object SystemUtils extends Logging {
|
||||
val inetAddress = InetAddress.getLocalHost.getHostAddress
|
||||
val canonicalHostName = InetAddress.getLocalHost.getCanonicalHostName
|
||||
private val localAddress = {
|
||||
try {
|
||||
InetAddress.getLocalHost
|
||||
} catch {
|
||||
case e: Exception =>
|
||||
InetAddress.getLoopbackAddress
|
||||
}
|
||||
}
|
||||
val inetAddress = localAddress.getHostAddress
|
||||
val canonicalHostName = localAddress.getCanonicalHostName
|
||||
|
||||
val hostName = {
|
||||
if (canonicalHostName != inetAddress)
|
||||
canonicalHostName
|
||||
else
|
||||
InetAddress.getLocalHost.getHostName
|
||||
localAddress.getHostName
|
||||
}
|
||||
|
||||
val mailName = {
|
||||
|
|
|
|||
Loading…
Reference in New Issue