From: Kefu Chai Date: Thu, 8 Aug 2019 04:24:53 +0000 (+0800) Subject: mgr/telemetry: clear the event after being awaken by it X-Git-Tag: v15.1.0~1936^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=0dddb20685007d990dc30daddca6212d36e5e308;p=ceph-ci.git mgr/telemetry: clear the event after being awaken by it otherwise telemetry will have a busy-loop once it's signaled. Signed-off-by: Kefu Chai --- diff --git a/src/pybind/mgr/telemetry/module.py b/src/pybind/mgr/telemetry/module.py index b01b3d576c1..769fc72bc62 100644 --- a/src/pybind/mgr/telemetry/module.py +++ b/src/pybind/mgr/telemetry/module.py @@ -466,6 +466,8 @@ class Module(MgrModule): self.event.wait(10) while self.run: + self.event.clear() + self.refresh_health_checks() if self.last_opt_revision < LAST_REVISION_RE_OPT_IN: