Submit script for jobs stored in a database. The scripts creates a job script similar to the one found here.
The script makes a few assumption about the SQL-database and the GPAW script
- There is a field in the database named ID which contains a unique job ID (has to be an integer)
- There is a field in the database named STATUS
- The GPAW scripts takes a the ID as a command line argument
There are two ways of passing command line arguments described in here.
The script submittes all jobs that has status new and sets the STATUS field to submitted. It is a good idea to let the GPAW script setts the STATUS field to for instance finished when the job is finished.
The submission tool supports both PBS and SLURM. This is set via the configuration, and should be done prior to installation. To select SLRUM run
python config.py --cluster=stallo
and to select PBS run
python config.py --cluster=vilje