From 4a064bbbf1b601b2ff1feefdaf33dd48d0e3af6a Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Tue, 24 Jan 2017 11:56:49 -0700 Subject: [PATCH] Use manhole to provide a way to debug hung jobs https://pypi.python.org/pypi/manhole Signed-off-by: Zack Cerza --- setup.py | 1 + teuthology/__init__.py | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/setup.py b/setup.py index 8754f4cf9f..f2579dfacd 100644 --- a/setup.py +++ b/setup.py @@ -91,6 +91,7 @@ setup( 'prettytable', 'libvirt-python', 'python-dateutil', + 'manhole', ], diff --git a/teuthology/__init__.py b/teuthology/__init__.py index 6e93e379e0..b240186b6f 100644 --- a/teuthology/__init__.py +++ b/teuthology/__init__.py @@ -1,3 +1,11 @@ +# Use manhole to give us a way to debug hung processes +# https://pypi.python.org/pypi/manhole +import manhole +manhole.install( + verbose=False, + # Listen for SIGUSR1 + oneshot_on="USR1" +) from gevent import monkey monkey.patch_all( dns=False, -- 2.39.5