From: Serge Rehbinder Date: Mon, 19 Sep 2016 10:30:20 +0000 (+0200) Subject: Add a default value for the jobs timeout X-Git-Tag: 5.0.0a1~119 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=981fd24a20e3158c625ac025d5b3687e375e9ff2;p=tools%2Fsat.git Add a default value for the jobs timeout --- diff --git a/commands/jobs.py b/commands/jobs.py index b6504e5..81a08db 100644 --- a/commands/jobs.py +++ b/commands/jobs.py @@ -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