async def start(self): await checkNodesConnected(self.nodes) timeout = plenumWaits.expectedPoolStartUpTimeout(len(self.nodes)) await eventually(checkNodesAreReady, self.nodes, retryWait=.25, timeout=timeout, ratchetSteps=10)
async def start(self): await checkNodesConnected(self.nodes) timeout = plenumWaits.expectedPoolStartUpTimeout(len(self.nodes)) await eventually(checkNodesAreReady, self.nodes, retryWait=.25, timeout=timeout, ratchetSteps=10)
def checkPoolReady(looper: Looper, nodes: Sequence[TestNode], customTimeout=None): """ Check that pool is in Ready state """ timeout = customTimeout or waits.expectedPoolStartUpTimeout(len(nodes)) looper.run( eventually(checkNodesAreReady, nodes, retryWait=.25, timeout=timeout, ratchetSteps=10))
def checkPoolReady(looper: Looper, nodes: Sequence[TestNode], customTimeout=None): """ Check that pool is in Ready state """ timeout = customTimeout or waits.expectedPoolStartUpTimeout(len(nodes)) looper.run( eventually(checkNodesAreReady, nodes, retryWait=.25, timeout=timeout, ratchetSteps=10))
def waitAllNodesUp(cli): timeout = waits.expectedPoolStartUpTimeout(len(cli.nodes)) cli.looper.run(eventually(checkAllNodesUp, cli, timeout=timeout))