From 68b259fd0014270a7499eb1c17bb537b4122468a Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Fri, 3 Jan 2014 14:56:46 -0600 Subject: [PATCH] Catch and log unhandled exceptions in the watchdog Signed-off-by: Zack Cerza --- teuthology/queue.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/teuthology/queue.py b/teuthology/queue.py index b1666f0af8..57dcc3d213 100644 --- a/teuthology/queue.py +++ b/teuthology/queue.py @@ -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() -- 2.39.5