From c623e60210e3d1ab9c300e16c756392b54a28e18 Mon Sep 17 00:00:00 2001 From: Kyr Shatskyy Date: Mon, 2 Jul 2018 17:14:58 +0200 Subject: [PATCH] Fix worker can't figure out owner of a job The patch fixes uncaught exception RuntimeError: I could not figure out the owner of the requested job. Please pass --owner . Worker dies with unhandled exception in run_with_watchdog if it can't figure out owner of a job, which it tries to kill when job runs longer then given limit of time. Signed-off-by: Kyr Shatskyy --- teuthology/worker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teuthology/worker.py b/teuthology/worker.py index f73bacaf6..00bcd23f0 100644 --- a/teuthology/worker.py +++ b/teuthology/worker.py @@ -303,7 +303,7 @@ def run_with_watchdog(process, job_config): log.warning("Job ran longer than {max}s. Killing...".format( max=teuth_config.max_job_time)) kill_job(job_info['name'], job_info['job_id'], - teuth_config.archive_base) + teuth_config.archive_base, job_config['owner']) # calling this without a status just updates the jobs updated time report.try_push_job_info(job_info) -- 2.47.3