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

Method remove_instance

lightx2v/disagg/services/controller.py:1858–1870  ·  view source on GitHub ↗

Remove instance address from the matching scheduling policy by type.

(self, instance_type: str, instance_address: str)

Source from the content-addressed store, hash-verified

1856 """Remove instance address from the matching scheduling policy by type."""
1857 if not instance_address:
1858 raise ValueError("instance_address cannot be empty")
1859
1860 if instance_type == "encoder":
1861 self.encoder_policy.remove_instance(instance_address)
1862 elif instance_type == "transformer":
1863 self.transformer_policy.remove_instance(instance_address)
1864 elif instance_type == "decoder":
1865 self.decoder_policy.remove_instance(instance_address)
1866 else:
1867 raise ValueError("instance_type must be one of: encoder, transformer, decoder")
1868
1869 def send_request(self, config):
1870 """Dispatch request config to services."""
1871 if config is None:
1872 raise ValueError("config cannot be None")
1873

Callers 1

reclaim_instanceMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected