]> SALOME platform Git repositories - tools/sat.git/commitdiff
Salome HOME
Add a default value for the jobs timeout
authorSerge Rehbinder <serge.rehbinder@cea.fr>
Mon, 19 Sep 2016 10:30:20 +0000 (12:30 +0200)
committerSerge Rehbinder <serge.rehbinder@cea.fr>
Mon, 19 Sep 2016 10:30:20 +0000 (12:30 +0200)
commands/jobs.py

index b6504e591ecf1b5a910c54076aa90f29a22940ae..81a08db1248d5a5484a32a3d1602113d757918bb 100644 (file)
@@ -640,7 +640,10 @@ class Jobs(object):
         '''
         name = job_def.name
         cmmnds = job_def.commands
-        timeout = job_def.timeout
+        if not "timeout" in job_def:
+            timeout = 4*60*60 # default timeout = 4h
+        else:
+            timeout = job_def.timeout
         after = None
         if 'after' in job_def:
             after = job_def.after