Commit 9e950f24 authored by Peter van 't Hof's avatar Peter van 't Hof
Browse files

Switch to walltime of queue itself

parent f4783a03
...@@ -48,14 +48,16 @@ trait CommandLineResources extends CommandLineFunction with Configurable { ...@@ -48,14 +48,16 @@ trait CommandLineResources extends CommandLineFunction with Configurable {
def coreMemory = _coreMemory def coreMemory = _coreMemory
/** This value is for SGE and is defined in seconds */ /** This value is for SGE and is defined in seconds */
protected val maxWalltimeLimit: Option[Int] = config("max_walltime_limit") wallTime = config("max_walltime_limit")
var retry = 0 var retry = 0
override def freezeFieldValues(): Unit = { override def freezeFieldValues(): Unit = {
setResources() setResources()
if (useSge && vmem.isDefined) jobResourceRequests :+= s"h_vmem=${vmem.get}" if (useSge) {
if (useSge && maxWalltimeLimit.isDefined) jobResourceRequests :+= s"h_rt=${maxWalltimeLimit.get}" vmem.foreach(v => jobResourceRequests :+= s"h_vmem=$v")
wallTime.foreach(t => jobResourceRequests :+= s"h_rt=$t")
}
super.freezeFieldValues() super.freezeFieldValues()
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment