def _send(self, destination, message): """Send the message to the configured destination.""" # get publisher p = _get_publisher( self.config_info['server'], self.config_info['port'], self.config_info['user'], self.config_info['password'], ) # send message headers = {'persistent': 'true'} wlcg_msg = FormatUtil.dictToWlcg(message, include_microseconds=False) p.send(destination, wlcg_msg, headers)