pyiron_base.state.queue_adapter module

This is a central control point for all the queue adapters, i.e. how we talk to remote computing power. Before this class was written, we only ever used the first queue adapter we found defined in the resources. That behaviour is maintained, but now with QueueAdapters we can trivially extend to using multiple resources and multiple adapters.

class pyiron_base.state.queue_adapter.QueueAdapters(*args, **kwargs)

Bases: object

Populates a list of pysqa.QueueAdapter objects based on info stored in the resource paths defined in the settings.

For each resource path, if either of queues/queue.yaml and queues/clusters.yaml exist, then the queues/ folder in that path is used to initialize a new object, with preference given to queue.yaml.

The :attribute:`adapter` property then lets you access the first of these that was found, or None if there were no queue configuration files.

property adapter: QueueAdapter

A pysqa.QueueAdapter constructed from the first appropriate configuration files found among the queues/ subdirectory among the resource paths defined in the settings.

construct_adapters() None

Read through the resources and construct queue adapters for all the queue configuration files found.

update() None

Constructs new queue adapters based on the current settings configuration.