Exemplo n.º 1
0
def check_sockets():  # pragma: debug
    r"""Check registered sockets."""
    from yggdrasil.communication import cleanup_comms
    count = cleanup_comms('ZMQComm')
    if count > 0:
        logger.info("%d sockets closed." % count)
Exemplo n.º 2
0
 def cleanup_comms(self):
     r"""Cleanup all comms."""
     for k in self.cleanup_comm_classes:
         cleanup_comms(k)