network.py 文件源码

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

项目:batch-scoring 作者: datarobot 项目源码 文件源码
def push_retry(self, batch):
        # we retry a batch - decrement retry counter
        batch = batch._replace(rty_cnt=batch.rty_cnt - 1)
        try:
            self.network_deque.put(batch, block=False)
        except queue.Full:
            msg = 'Dropping {} due to backfill queue full.'.format(
                batch)
            self.ui.error(msg)
            self.send_error_to_ctx(batch, msg)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号