视频提交接口应快速返回 operation,避免单次网络挂死拖满整条链路。
(self)
| 915 | return max(5, min(int(self.timeout or 0) or 120, 10)) |
| 916 | |
| 917 | def _get_video_submit_timeout(self) -> int: |
| 918 | """视频提交接口应快速返回 operation,避免单次网络挂死拖满整条链路。""" |
| 919 | return max(30, min(int(self.timeout or 0) or 120, 75)) |
| 920 | |
| 921 | def _get_video_poll_timeout(self) -> int: |
| 922 | """视频状态查询是轻量轮询,请求超时不应超过下一轮轮询太久。""" |
no outgoing calls
no test coverage detected