jarvis.tasks.queue_jobs

Modules for job submission.

Module Contents

Classes

Queue

Construct HPC Job class.

class jarvis.tasks.queue_jobs.Queue(q_type='head_node', q_parameters={}, job_sub_cmd=None, job_check_cmd='', job_id='')[source]

Bases: object

Construct HPC Job class.

head_node(self, submit_cmd=None)[source]

Select if run on the head node, not recommended.

to_dict(self)[source]

Convert class to a dictionary.

classmethod from_dict(self, d={})[source]

Load from a dictionary.

classmethod pbs(self, filename='submit_job', shell='#!/bin/bash', nnodes=1, cores=16, walltime=None, queue=None, account=None, group_name=None, jobname='myJob', jobout='job.out', joberr='job.err', memory=None, email=None, pre_job_lines=None, directory=None, env=None, job_line='echo I am here', post_job_lines=None, submit_cmd=None)[source]

Select if run using PBS script.

classmethod slurm(self, filename='submit_job', shell='#!/bin/bash', nnodes=1, cores=16, walltime=None, queue=None, account=None, group_name=None, jobname='myJob', jobout='job.out', joberr='job.err', memory=None, email=None, pre_job_lines=None, directory=None, env=None, job_line='echo I am here', post_job_lines=None, submit_cmd=None)[source]

Select if run using SLURM script.