]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
node-proxy: call time.sleep() after each reporter iteration
authorGuillaume Abrioux <gabrioux@ibm.com>
Mon, 12 Feb 2024 14:25:24 +0000 (14:25 +0000)
committerGuillaume Abrioux <gabrioux@ibm.com>
Wed, 14 Feb 2024 09:05:53 +0000 (09:05 +0000)
This makes sure time.sleep() is always call in the reporter loop.

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
(cherry picked from commit 6fc3d861c5785aad76aa6bde6944e2bb317df4f3)

src/ceph-node-proxy/ceph_node_proxy/reporter.py

index 4e9c4e2798b313496b3acd05b652dfdff755b9a7..20d43b59d332b1b3f98082b50421ac561ac6c715 100644 (file)
@@ -63,7 +63,7 @@ class Reporter(BaseThread):
                                 self.system.previous_data = self.system.get_system()
                         else:
                             self.log.debug('no diff, not sending data to the mgr.')
-                    time.sleep(5)
             self.log.debug('lock released in reporter loop.')
+            time.sleep(5)
         self.log.debug('exiting reporter loop.')
         raise SystemExit(0)