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

Method submit_request

lightx2v/disagg/workload.py:259–281  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

257
258 @task
259 def submit_request(self):
260 stage = _current_stage(self.stages)
261 request_index = int(time.time() * 1000) % 1_000_000
262 payload = _build_request_payload(self.base_config, stage, request_index)
263 send_started = time.perf_counter()
264 try:
265 host, port = _get_controller_target()
266 self.req_mgr.send(host, port, payload)
267 events.request.fire(
268 request_type="zmq",
269 name=f"{stage.name}:config_push",
270 response_time=(time.perf_counter() - send_started) * 1000.0,
271 response_length=len(str(payload)),
272 exception=None,
273 )
274 except Exception as exc:
275 events.request.fire(
276 request_type="zmq",
277 name=f"{stage.name}:config_push",
278 response_time=(time.perf_counter() - send_started) * 1000.0,
279 response_length=0,
280 exception=exc,
281 )
282
283
284__all__ = [

Callers

nothing calls this directly

Calls 5

_current_stageFunction · 0.85
_build_request_payloadFunction · 0.85
_get_controller_targetFunction · 0.85
fireMethod · 0.80
sendMethod · 0.45

Tested by

no test coverage detected