code: def wait_for_compactions(self, timeout=600):
          
          for node in list(self.nodes.values()):
              if node.is_running():
                  node.wait_for_compactions(timeout)
          return self
docs: Wait for all compactions to finish on all nodes.