Commit 55e97aec authored by Jens Korinth's avatar Jens Korinth

Stop cleaning after erroneous runs

parent 7e36ed16
......@@ -69,8 +69,10 @@ class ComposeTask(composition: Composition,
_composerResult flatMap (_.power map (_.file)) getOrElse ""))
LogFileTracker.stopLogFileAppender(appender)
composer.clean(composition, target, designFrequency)
(_composerResult map (_.result) getOrElse false) == ComposeResult.Success
val result = (_composerResult map (_.result) getOrElse false) == ComposeResult.Success
if (result)
composer.clean(composition, target, designFrequency)
result
}
private def slurmExecution: Boolean = {
......
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