MCPcopy Create free account
hub / github.com/TheSmallHanCat/flow2api / _get_video_submit_timeout

Method _get_video_submit_timeout

src/services/flow_client.py:917–919  ·  view source on GitHub ↗

视频提交接口应快速返回 operation,避免单次网络挂死拖满整条链路。

(self)

Source from the content-addressed store, hash-verified

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 """视频状态查询是轻量轮询,请求超时不应超过下一轮轮询太久。"""

Calls

no outgoing calls

Tested by

no test coverage detected