soprano.hpc.submitter#
Classes and functions required for processes that automatically submit jobs to a queueing system working in the background.
These can be launched interactively from the command line. In order to do that:
write your own implementation of a submitter class by inheriting from soprano.hpc.submitter.Submitter or use one of the provided ones;
write an input file in which you simply create an instance of said class and set up its parameters (ideally by calling the set_parameters method);
launch that submitter from the command line with the following command:
python -m soprano.hpc.submitter start <filename>
You can have multiple submitter instances, even of different types, defined in the same file: in that case you will need to use the -n option to specify which one you want to launch (the name you need to use is the name of the variable you stored the instance in). If you are working on remote login and you want to prevent the submitter from being terminated upon exiting your session use the -nohup option. To list which submitters from a given file are running, and how long have they been running for, just use:
python -m soprano.hpc.submitter list <filename>
Similarly, you can stop a running submitter with:
python -m soprano.hpc.submitter stop <filename>
Submitters have a ‘name’ property and will save a <name>.log file in which any output from their run can be stored.
Modules