Skip to content

Commit

Permalink
Merge 9e2bb71 into 697c137
Browse files Browse the repository at this point in the history
  • Loading branch information
mcovarr committed Apr 10, 2017
2 parents 697c137 + 9e2bb71 commit a3121c9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import cromwell.core.{CallOutputs, CromwellAggregatedException, CromwellFatalExc
import cromwell.services.keyvalue.KeyValueServiceActor._
import cromwell.services.metadata.CallMetadataKeys
import lenthall.util.TryUtil
import net.ceedubs.ficus.Ficus._
import wdl4s._
import wdl4s.values.{WdlFile, WdlGlobFile, WdlSingleFile, WdlValue}

Expand Down Expand Up @@ -88,6 +89,8 @@ trait StandardAsyncExecutionActor extends AsyncBackendJobExecutionActor with Sta
lazy val backendEngineFunctions: StandardExpressionFunctions =
standardInitializationData.expressionFunctions(jobPaths)

lazy val scriptEpilogue = configurationDescriptor.backendConfig.as[Option[String]]("script-epilogue").getOrElse("sync")

/**
* Maps WdlFile objects for use in the commandLinePreProcessor.
*
Expand Down Expand Up @@ -189,7 +192,7 @@ trait StandardAsyncExecutionActor extends AsyncBackendJobExecutionActor with Sta
|cd $cwd
|${globManipulations(globFiles)}
|)
|sync
|$scriptEpilogue
|mv $rcTmpPath $rcPath
|""".stripMargin.replace("INSTANTIATED_COMMAND", instantiatedCommand)
}
Expand Down
2 changes: 2 additions & 0 deletions core/src/main/resources/reference.conf
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,8 @@ backend {
#concurrent-job-limit = 5

run-in-background = true
# Configures any logic which should run after the command completes
# script-epilogue = ""
runtime-attributes = """
String? docker
String? docker_user
Expand Down
1 change: 1 addition & 0 deletions src/bin/travis/resources/local_centaur.conf
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ call-caching {
backend.providers.Local.config.filesystems.local.caching.duplication-strategy = ["copy"]
backend.providers.Local.config.filesystems.local.localization = ["soft-link", "copy"]
backend.providers.Local.config.concurrent-job-limit = 20
backend.providers.Local.config.script-epilogue = "sync"

0 comments on commit a3121c9

Please sign in to comment.