Generate a unique actor name based on the model config, engine ID, and node ID.
(self, role: str, engine_id: int, node_id: int)
| 38 | self.logger = get_logger(__name__) |
| 39 | |
| 40 | def get_actor_name(self, role: str, engine_id: int, node_id: int) -> str: |
| 41 | """Generate a unique actor name based on the model config, engine ID, and node ID.""" |
| 42 | return f"{self.config.name}_{role}_model_{engine_id}_{node_id}" |
| 43 | |
| 44 | def allocate_bundles(self) -> BundleResult: |
| 45 | """Allocate bundles for the rollout model and auxiliary models based on the configuration.""" |
no outgoing calls