]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
Catch and log unhandled exceptions in the watchdog
authorZack Cerza <zack@cerza.org>
Fri, 3 Jan 2014 20:56:46 +0000 (14:56 -0600)
committerZack Cerza <zack@cerza.org>
Fri, 3 Jan 2014 20:56:46 +0000 (14:56 -0600)
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
teuthology/queue.py

index b1666f0af82061addfb9edf50a91f7905e3cc5f6..57dcc3d213cd8d3582cda46c13c66dde0d1f9fac 100644 (file)
@@ -289,7 +289,10 @@ def run_job(job_config, teuth_bin_path):
 
         if teuth_config.results_server:
             log.info("Running with watchdog")
-            run_with_watchdog(p, job_config)
+            try:
+                run_with_watchdog(p, job_config)
+            except Exception:
+                log.exception("run_with_watchdog had an unhandled exception")
         else:
             log.info("Running without watchdog")
             p.wait()