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

Method _get_video_poll_timeout

src/services/flow_client.py:921–923  ·  view source on GitHub ↗

视频状态查询是轻量轮询,请求超时不应超过下一轮轮询太久。

(self)

Source from the content-addressed store, hash-verified

919 return max(30, min(int(self.timeout or 0) or 120, 75))
920
921 def _get_video_poll_timeout(self) -> int:
922 """视频状态查询是轻量轮询,请求超时不应超过下一轮轮询太久。"""
923 return max(10, min(int(self.timeout or 0) or 120, 45))
924
925 def _resolve_generation_retry_budget(self, base_max_retries: int, error: Optional[Union[Exception, str]] = None) -> int:
926 """计算当前生成链路允许的总重试次数。"""

Callers 1

check_video_statusMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected