From 97ffa0decfbd046670313bebf36022a081b57fc9 Mon Sep 17 00:00:00 2001
From: Peter van 't Hof <p.j.van_t_hof@lumc.nl>
Date: Fri, 8 Apr 2016 11:15:01 +0200
Subject: [PATCH] Added job delay

---
 .../nl/lumc/sasc/biopet/core/BiopetCommandLineFunction.scala   | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/public/biopet-core/src/main/scala/nl/lumc/sasc/biopet/core/BiopetCommandLineFunction.scala b/public/biopet-core/src/main/scala/nl/lumc/sasc/biopet/core/BiopetCommandLineFunction.scala
index a7bdaf92f..c03c0a717 100644
--- a/public/biopet-core/src/main/scala/nl/lumc/sasc/biopet/core/BiopetCommandLineFunction.scala
+++ b/public/biopet-core/src/main/scala/nl/lumc/sasc/biopet/core/BiopetCommandLineFunction.scala
@@ -50,9 +50,12 @@ trait BiopetCommandLineFunction extends CommandLineResources { biopetFunction =>
     writer.println("set -eubf")
     writer.println("set -o pipefail")
     lines.foreach(writer.println)
+    jobDelayTime.foreach(x => writer.println(s"sleep $x"))
     writer.close()
   }
 
+  var jobDelayTime: Option[Int] = config("job_delay_time")
+
   // This overrides the default "sh" from queue. For Biopet the default is "bash"
   updateJobRun = {
     case jt: JobTemplate =>
-- 
GitLab