FlowsManager.py 文件源码

python
阅读 25 收藏 0 点赞 0 评论 0

项目:flows 作者: mastro35 项目源码 文件源码
def _fetch_messages(self):
        """
        Get an input message from the socket
        """
        try:
            [_, msg] = self.socket.recv_multipart(flags=zmq.NOBLOCK)
            if Global.CONFIG_MANAGER.tracing_mode:
                Global.LOGGER.debug("fetched a new message")

            self.fetched = self.fetched + 1
            obj = pickle.loads(msg)
            self._deliver_message(obj)
            return obj
        except zmq.error.Again:
            return None
        except Exception as new_exception:
            Global.LOGGER.error(new_exception)
            raise new_exception
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号