]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mgr/telemetry: clear the event after being awaken by it
authorKefu Chai <kchai@redhat.com>
Thu, 8 Aug 2019 04:24:53 +0000 (12:24 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 8 Aug 2019 04:24:56 +0000 (12:24 +0800)
otherwise telemetry will have a busy-loop once it's signaled.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/pybind/mgr/telemetry/module.py

index b01b3d576c101a25c19111bd0baaa47399fd0ad9..769fc72bc62a5a5fe9c410c5247ceccd895b498c 100644 (file)
@@ -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: