Submit Slurm batch jobs.
More...
|
def | __init__ (self) |
|
def | parse_args (self, args) |
| Parse command line arguments and perform setup. More...
|
|
def | default_rundir (self, job_id=None) |
| Override the basic implementation for getting the default run directory. More...
|
|
def | build_cmd (self, job_id) |
| Wrap submission of Slurm jobs using a generated script. More...
|
|
def | submit_job (self, job_id) |
| Submit a single batch job and return the batch ID. More...
|
|
def | submit (self) |
| This is the generic batch submission function which gets a list of jobs to run based on command line arguments and submits them individually. More...
|
|
Submit Slurm batch jobs.
Definition at line 332 of file batch.py.
◆ __init__()
◆ _default_queue()
def _default_queue |
( |
|
self | ) |
|
|
private |
◆ _sbatch()
def _sbatch |
( |
|
self, |
|
|
|
job_id |
|
) |
| |
|
private |
◆ _sh_filename()
def _sh_filename |
( |
|
self, |
|
|
|
job_id |
|
) |
| |
|
private |
◆ _write_job_script()
def _write_job_script |
( |
|
self, |
|
|
|
sh_filename, |
|
|
|
job_cmd |
|
) |
| |
|
private |
Write the shell script for Slurm job submission using the 'sbatch' command.
Definition at line 428 of file batch.py.
◆ build_cmd()
def build_cmd |
( |
|
self, |
|
|
|
job_id |
|
) |
| |
Wrap submission of Slurm jobs using a generated script.
Reimplemented from Batch.
Definition at line 401 of file batch.py.
◆ default_rundir()
def default_rundir |
( |
|
self, |
|
|
|
job_id = None |
|
) |
| |
Override the basic implementation for getting the default run directory.
Reimplemented from Batch.
Definition at line 358 of file batch.py.
◆ parse_args()
def parse_args |
( |
|
self, |
|
|
|
args |
|
) |
| |
Parse command line arguments and perform setup.
Reimplemented from BatchSystem.
Definition at line 343 of file batch.py.
◆ submit_job()
def submit_job |
( |
|
self, |
|
|
|
job_id |
|
) |
| |
Submit a single batch job and return the batch ID.
This is abstract as each batch system will do this differently.
Some batch systems don't implement this but sub-classes should override this and make it a no-op so that they can be instantiated.
Reimplemented from Batch.
Definition at line 453 of file batch.py.
◆ account
◆ env
◆ sh_dir
◆ site
The documentation for this class was generated from the following file: