libmuscle.manager.instance_manager module
- class libmuscle.manager.instance_manager.InstanceManager(configuration: Configuration, run_dir: RunDir, instance_registry: InstanceRegistry)[source]
Bases:
object
Instantiates and manages running instances
- get_resources() Dict[Reference, Resources] [source]
Returns the resources allocated to each instance.
Only call this after start_all() has been called, or it will raise an exception because the information is not available.
- Returns:
The resources for each instance instantiated by start_all()
- set_manager_location(location: str) None [source]
Sets the network location of the manager.
Call this before starting any instances so that the location can be passed to them.
- Parameters:
location – The network location (e.g. localhost:5000)