]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/prometheus: use threading.Event instead of sleep
authorBoris Ranto <branto@redhat.com>
Wed, 25 Nov 2020 19:49:48 +0000 (20:49 +0100)
committerBoris Ranto <branto@redhat.com>
Mon, 30 Nov 2020 10:37:46 +0000 (11:37 +0100)
commit91fd38925a2d9dfe858ac848b1f8a4a05a762988
tree780ec245715541ccb8f318d39c1ceb0b91ccb73b
parentf0a80514c97dc19b9c0f0d2cb01da39a708e7296
mgr/prometheus: use threading.Event instead of sleep

This allows us to avoid waiting for the sleep to finish when waiting for
the thread to finish.

Signed-off-by: Boris Ranto <branto@redhat.com>
(cherry picked from commit dd5886c3c006e388283df50cc87addeffb3b2b52)
src/pybind/mgr/prometheus/module.py