Commit 845b4d2a authored by Lukas Weber's avatar Lukas Weber Committed by Lukas Sommer

Added to possibility to delete projects by choice

parent fbf0b6ea
......@@ -56,7 +56,8 @@ private class ConcreteRun(val no: Int, val element: DesignSpace.Element, val tar
target = target,
logFile = Some("%s/%s/%s.log".format(exploration.basePath, id, id)),
debugMode = debugMode,
onComplete = res => stop(signal))
onComplete = res => stop(signal),
deleteOnFinish = true)
_task = Some(t)
exploration.publish(Exploration.Events.RunStarted(element, t))
exploration.tasks(t) // start task
......
......@@ -41,7 +41,8 @@ class ComposeTask(composition: Composition,
features: Option[Seq[Feature]] = None,
logFile: Option[String] = None,
debugMode: Option[String] = None,
val onComplete: Boolean => Unit)
val onComplete: Boolean => Unit,
val deleteOnFinish: Boolean = false)
(implicit cfg: Configuration) extends Task with LogTracking {
private[this] implicit val _logger = de.tu_darmstadt.cs.esa.tapasco.Logging.logger(getClass)
private[this] val _slurm = Slurm.enabled
......@@ -88,7 +89,7 @@ class ComposeTask(composition: Composition,
LogFileTracker.stopLogFileAppender(appender)
val result = (_composerResult map (_.result) getOrElse false) == ComposeResult.Success
if (result) { composer.clean(composition, target, designFrequency) }
if (result || deleteOnFinish) { composer.clean(composition, target, designFrequency) } // TODO This has to be run, if this compose task is part of a DSE
result
}
......
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