Bases: fireworks.utilities.fw_serializers.FWSerializable
The QueueAdapter is responsible for all interactions with a specific queue management system. This includes handling all details of queue script format as well as queue submission and management.
A user should extend this class with implementations that work on specific queue systems.
returns the number of jobs in the queue, probably using subprocess or shutil to call a command like ‘qstat’. returns None when the number of jobs cannot be determined.
Parameters: |
|
---|
returns a (multi-line) String representing the queue script, e.g. PBS script. All details of the queue script must be specified in the QueueParams().
Parameters: |
|
---|
submits the job to the queue, probably using subprocess or shutil :param queue_params: A QueueParams() instance :param script_file: name of the script file to use (String)
Bases: fireworks.utilities.fw_serializers.FWSerializable
A QueueParams instance contains all the information needed to write a queue file and submit to a queue system. Details of the queue file format and queue submission commands should be included in the QueueAdapterBase object. Specific parameters used by the QueueAdapterBase should be included in the params variable.
Parameters: |
|
---|
Note: The QueueAdapter is loaded based on its fw_name alone See the docs for to_dict() for more details
Note: the QueueAdapter is being serialized using the FW name alone This keeps the serialization compact and easy to edit by humans. The from_dict() will dynamically find the correct QueueAdapter using its fw_name.
This module is used to submit jobs to a queue on a cluster. It can submit a single job, or if used in “rapid-fire” mode, can submit multiple jobs within a directory structure. The details of job submission and queue communication are handled using QueueParams, which specifies a QueueAdapter as well as desired properties of the submit script.
Submit a single job to the queue.
Parameters: |
|
---|
Submit many jobs to the queue.
Parameters: |
|
---|