libmuscle.native_instantiator.iagent_manager module

class libmuscle.native_instantiator.iagent_manager.IAgentManager[source]

Bases: object

Interface for Agent Managers.

Only implemented by AgentManager, and only exists to avoid a circular dependency between AgentManager, MAPServer, and MAPRequestHandler. Ugh.

report_resources(resources: OnNodeResources) None[source]

Report resources found on a node.

Called by MAPServer from a server thread.

Parameters:
  • node_name – Id of the node these resources are on

  • resources – Dict mapping resource type to resource ids

report_result(names_exit_codes: list[tuple[str, int]]) None[source]

Report results of finished processes.

Called by MAPServer from a server thread.

Parameters:

names_exit_codes – A list of names and exit codes of finished processes.