# First put the walltime in seconds oarAdditionalDelay = 20;
# additional delay for /bin/sleep command to
# take in account prologue and epilogue scripts execution
- # int walltimeAdditionalDelay = 120; additional delay
+ # int walltimeAdditionalDelay = 240; additional delay
desired_walltime = duration
- total_walltime = desired_walltime + 140#+2 min 20
- sleep_walltime = desired_walltime + 20 #+20 sec
+ total_walltime = desired_walltime + 240 #+4 min Update SA 23/10/12
+ sleep_walltime = desired_walltime # 0 sec added Update SA 23/10/12
walltime = []
#Put the walltime back in str form
#First get the hours
-def TestOAR(job_id = '1'):
+def TestOAR(job_id ):
if isinstance(job_id,list) and len(job_id) == 1:
job_id = job_id[0]
-
+
+ print " JOB ID : " ,job_id
oar = OARrestapi()
jobs = oar.parser.SendRequest("GET_reserved_nodes", username = 'avakian')
print "\r\n OAR GET_reserved_nodes ",jobs