aiida.brokers package#

Subpackages#

Submodules#

Interface for a message broker that facilitates communication with and between process runners.

class aiida.brokers.broker.Broker(profile: Profile)[source]#

Bases: object

Interface for a message broker that facilitates communication with and between process runners.

__dict__ = mappingproxy({'__module__': 'aiida.brokers.broker', '__doc__': 'Interface for a message broker that facilitates communication with and between process runners.', '__init__': <function Broker.__init__>, 'get_communicator': <function Broker.get_communicator>, 'iterate_tasks': <function Broker.iterate_tasks>, 'close': <function Broker.close>, '__dict__': <attribute '__dict__' of 'Broker' objects>, '__weakref__': <attribute '__weakref__' of 'Broker' objects>, '__annotations__': {}})#
__init__(profile: Profile) None[source]#

Construct a new instance.

Parameters:

profile – The profile.

__module__ = 'aiida.brokers.broker'#
__weakref__#

list of weak references to the object (if defined)

abstract close()[source]#

Close the broker.

abstract get_communicator()[source]#

Return an instance of kiwipy.Communicator.

abstract iterate_tasks()[source]#

Return an iterator over the tasks in the launch queue.