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

Method enqueue_request

lightx2v/disagg/conn.py:502–517  ·  view source on GitHub ↗
(
        self,
        bootstrap_room: int,
        data_ptrs: List[int],
    )

Source from the content-addressed store, hash-verified

500 self.end_room_threads(room)
501
502 def enqueue_request(
503 self,
504 bootstrap_room: int,
505 data_ptrs: List[int],
506 ):
507 with self.pool_lock:
508 self.request_pool[bootstrap_room] = data_ptrs
509 self.request_status[bootstrap_room] = DataPoll.WaitingForInput
510 if (
511 self.disaggregation_phase == DisaggregationPhase.PHASE1
512 and self.disaggregation_mode == DisaggregationMode.ENCODE
513 or self.disaggregation_phase == DisaggregationPhase.PHASE2
514 and self.disaggregation_mode == DisaggregationMode.TRANSFORMER
515 ):
516 if self.transfer_event is not None:
517 self.transfer_event.set()
518
519 def get_backlog_counts(self) -> Dict[str, int]:
520 with self.pool_lock:

Callers 2

sendMethod · 0.80
initMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected