From c3c262656d7d9e231c5390b324435db8ce862b89 Mon Sep 17 00:00:00 2001 From: Josh Durgin Date: Wed, 21 Sep 2011 11:05:18 -0700 Subject: [PATCH] schedule: put results timeout in the job The default was always being used instead. --- teuthology/run.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/teuthology/run.py b/teuthology/run.py index 63039ba9d1ed2..511e060e960a9 100644 --- a/teuthology/run.py +++ b/teuthology/run.py @@ -261,7 +261,7 @@ def schedule(): job.delete() return - job = yaml.safe_dump(dict( + job_config = dict( config=ctx.config, name=ctx.name, last_in_suite=ctx.last_in_suite, @@ -270,6 +270,10 @@ def schedule(): description=ctx.description, owner=ctx.owner, verbose=ctx.verbose, - )) + ) + if ctx.timeout is not None: + job_config['results_timeout'] = ctx.timeout + + job = yaml.safe_dump(job_config) jid = beanstalk.put(job, ttr=60*60*24) print 'Job scheduled with ID {jid}'.format(jid=jid) -- 2.39.5