From 981fd24a20e3158c625ac025d5b3687e375e9ff2 Mon Sep 17 00:00:00 2001 From: Serge Rehbinder Date: Mon, 19 Sep 2016 12:30:20 +0200 Subject: [PATCH] Add a default value for the jobs timeout --- commands/jobs.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- 2.39.2