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

Method _get_control_plane_timeout

src/services/flow_client.py:913–915  ·  view source on GitHub ↗

控制轻量控制面请求的超时,避免认证/项目接口长时间挂起。

(self)

Source from the content-addressed store, hash-verified

911 ])
912
913 def _get_control_plane_timeout(self) -> int:
914 """控制轻量控制面请求的超时,避免认证/项目接口长时间挂起。"""
915 return max(5, min(int(self.timeout or 0) or 120, 10))
916
917 def _get_video_submit_timeout(self) -> int:
918 """视频提交接口应快速返回 operation,避免单次网络挂死拖满整条链路。"""

Callers 8

st_to_atMethod · 0.95
create_projectMethod · 0.95
delete_projectMethod · 0.95
get_creditsMethod · 0.95
_aisandbox_requestMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected