From 3f9cbdfe659ed62bd773d670f6a0d7effb36362e Mon Sep 17 00:00:00 2001
From: Franck Dary <franck.dary@lis-lab.fr>
Date: Tue, 31 Mar 2020 21:31:14 +0200
Subject: [PATCH] updated launchBatches to be idempotent on oar

---
 UD_any/launchBatches.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/UD_any/launchBatches.py b/UD_any/launchBatches.py
index 5712af1..befe08d 100755
--- a/UD_any/launchBatches.py
+++ b/UD_any/launchBatches.py
@@ -40,11 +40,12 @@ def launchTrainOar(mode, expName, arguments) :
 
   command = "oarsub"
   command += " -t besteffort"
+  command += " -t idempotent"
   command += " -n train:%s"%expName
   command += " -E %s.stderr"%expName
   command += " -O %s.stdout"%expName
   command += " -p \"gpu IS NOT NULL\""
-  command += " -l walltime=96:00:00"
+  command += " -l walltime=15:00:00"
   command += " \"" + "./train.sh %s bin/%s %s --silent %s"%(mode,expName,arguments,devScore) + "\""
 
   os.system(command)
-- 
GitLab