Example #1
0
 def _add_cl_node(self, config: DockerConfig, number_of_retries=3) -> None:
     with self._lock:
         config.number = self.node_count
         for _ in range(number_of_retries):
             cl_node = CasperLabsNode(self, config)
             if node_started_and_not_failed_to_bind(cl_node.node):
                 self.cl_nodes.append(cl_node)
                 return
             else:
                 logging.warning(f"Node failed to bind")
         raise Exception(
             f"Node started {number_of_retries} times but failed to bind each time"
         )
Example #2
0
 def _add_cl_node(self, config: DockerConfig) -> None:
     with self._lock:
         config.number = self.node_count
         cl_node = CasperLabsNode(self, config)
         self.cl_nodes.append(cl_node)