Remove instance address from the matching scheduling policy by type.
(self, instance_type: str, instance_address: str)
| 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 |