From 53fc2d93dd6935f6fdad94a1a0ecfa9d6404d0f2 Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Thu, 16 Jan 2014 10:53:53 -0600 Subject: [PATCH] Log a warning when killing long-running jobs. Signed-off-by: Zack Cerza --- teuthology/queue.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/teuthology/queue.py b/teuthology/queue.py index 9a6b1f8332..60b438e9aa 100644 --- a/teuthology/queue.py +++ b/teuthology/queue.py @@ -225,6 +225,8 @@ def run_with_watchdog(process, job_config): # Kill jobs that have been running longer than the global max job_run_time = datetime.utcnow() - job_start_time if job_run_time.seconds > teuth_config.max_job_time: + 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) break -- 2.39.5