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

Method transfer_sync

lightx2v/disagg/mooncake.py:183–233  ·  view source on GitHub ↗

Synchronously transfer data to the specified address.

(self, session_id: str, buffer: int, peer_buffer_address: int, length: int)

Source from the content-addressed store, hash-verified

181 retry_count + 1,
182 session_id,
183 int(buffer),
184 int(peer_buffer_address),
185 int(length),
186 )
187 if attempt < retry_count:
188 time.sleep(retry_backoff_s)
189
190 logger.error("Transfer Return Error after retries")
191 return -1
192 return -1
193
194 def get_localhost(self):
195 return self.config.local_hostname
196
197 def get_session_id(self):
198 return self.session_id

Callers 1

send_dataMethod · 0.80

Calls 2

warningMethod · 0.80
errorMethod · 0.80

Tested by

no test coverage detected