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)
def cleanup_comms(self): r"""Cleanup all comms.""" for k in self.cleanup_comm_classes: cleanup_comms(k)