龙卷风阻止其他请求或ioloop

时间:2019-07-05 02:04:23

标签: vuejs2 tornado

问题: 为什么我不能打电话给其他人请求

enter image description here

目标: 想要调用其他服务,即使上一个仍在处理中

enter image description here

我已经尝试过了 tornado-blocking-asynchronous-requests,但仍阻止其他请求

主要处理程序

{classes}

Hotel.py

class Main(APIUserAuth):
    @gen.coroutine
        def post(self):
            hotelId=self.get_argument('code',False)
            try:
                if not hotelId:
                    raise Error('Hotel ID is not defined')
                params=escape.json_decode(self.request.body)
                result=yield Hotel.pricing(hotelId,params)
                self.write(result)
            except Error as e:
                self.write_wrong(str(e))
            except Exception as e:
                print(traceback.format_exc())
                self.write_wrong()
            finally:
                self.finish()

当其他10个请求仍在处理中时,我将不会呼叫其他请求。 但是,为什么另一个在处理过程中另一个仍然可以处理新请求呢? 同时发出10个请求是否太难处理了?

https://i.imgur.com/yVR8eNw.png

这可能是什么原因?

0 个答案:

没有答案
相关问题