MCPcopy Create free account
hub / github.com/ModelTC/LightX2V / call_sync

Function call_sync

scripts/server/benchmark_sync_s3_latency.py:97–99  ·  view source on GitHub ↗
(base_url: str, payload: Dict[str, Any], timeout_seconds: int, poll_interval_seconds: float)

Source from the content-addressed store, hash-verified

95
96def call_sync(base_url: str, payload: Dict[str, Any], timeout_seconds: int, poll_interval_seconds: float) -> requests.Response:
97 endpoint = f"{base_url.rstrip('/')}/v1/tasks/sync?timeout_seconds={timeout_seconds}&poll_interval_seconds={poll_interval_seconds}"
98 return requests.post(endpoint, json=payload, timeout=timeout_seconds + 30)
99
100
101def run_client_upload_flow(
102 args: argparse.Namespace,

Callers 2

run_client_upload_flowFunction · 0.85
run_server_upload_flowFunction · 0.85

Calls 1

postMethod · 0.80

Tested by

no test coverage detected