]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
f exporter-memory
authorZack Cerza <zack@redhat.com>
Tue, 23 May 2023 16:35:29 +0000 (10:35 -0600)
committerZack Cerza <zack@redhat.com>
Tue, 23 May 2023 16:35:29 +0000 (10:35 -0600)
teuthology/exporter.py

index b5f130f95ff91b9f5818190757867cfad7fcbc94..c8ab1df3f55a2e8e7f1d6b3d54a0bdbfd93485a8 100644 (file)
@@ -9,7 +9,6 @@ import time
 
 from pathlib import Path
 
-from teuthology import exit
 import teuthology.beanstalk as beanstalk
 import teuthology.dispatcher
 from teuthology.config import config
@@ -59,7 +58,7 @@ class TeuthologyExporter:
             new_snapshot = filter_snapshot(tracemalloc.take_snapshot())
             display_top(new_snapshot)
             compare_snapshots(self.init_snapshot, new_snapshot)
-        exit.exiter.add_handler(signal.SIGUSR2, checkpoint)
+        signal.signal(signal.SIGUSR2, checkpoint)
 
     def start(self):
         start_http_server(self.port, registry=registry)