]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
Log a warning when killing long-running jobs.
authorZack Cerza <zack@cerza.org>
Thu, 16 Jan 2014 16:53:53 +0000 (10:53 -0600)
committerZack Cerza <zack@cerza.org>
Thu, 16 Jan 2014 16:53:53 +0000 (10:53 -0600)
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
teuthology/queue.py

index 9a6b1f83326f94e8f37f8f687cff7bfc8e17afa2..60b438e9aabb8563e0cd7912a9a6f9b28d7caa14 100644 (file)
@@ -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