From: Zack Cerza Date: Thu, 16 Jan 2014 16:53:53 +0000 (-0600) Subject: Log a warning when killing long-running jobs. X-Git-Tag: 1.1.0~1694 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=53fc2d93dd6935f6fdad94a1a0ecfa9d6404d0f2;p=teuthology.git Log a warning when killing long-running jobs. Signed-off-by: Zack Cerza --- diff --git a/teuthology/queue.py b/teuthology/queue.py index 9a6b1f833..60b438e9a 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