ShannonAI / service-streamer

Boosting your Web Services of Deep Learning Applications.
Apache License 2.0
1.23k stars 186 forks source link

一个及其严重的BUG #48

Closed FirstDiscoverer closed 4 years ago

FirstDiscoverer commented 4 years ago

在实现ManagedModel接口,覆写predict方法,在正常的使用中,如果predict方法出现异常,会导致后续所有的调用Timeout

leon0707 commented 4 years ago

https://github.com/ShannonAI/service-streamer/blob/master/service_streamer/service_streamer.py#L188

model_predict出现的异常并没有处理

Meteorix commented 4 years ago

建议可以先在自己的predict接口中catch一下异常,这个api我们考虑下容错

FirstDiscoverer commented 4 years ago

已经try cactch了

songyouwei commented 4 years ago

这个api容错怎么做比较优雅一点呢,只能except返回None值?