Skip to content
Snippets Groups Projects
Commit f6c9e838 authored by David Verelst's avatar David Verelst
Browse files

added PBS job name related settings to qsub-wrap cmd interface arguments

parent 8040034b
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -152,7 +152,7 @@ def addvariableargs(parser):
return kwargs_pass, parser
def submit_pbs(walltime='00:59:59', queue = 'xpresq', py_env='anaconda',
def submit_pbs(walltime='00:59:59', queue='xpresq', py_env='wetb_py3',
pbs_in='pbs_in', pbs_out='pbs_out', jobname=None, command=None,
fpath=None, dry=False, **kwargs):
"""
......@@ -254,6 +254,15 @@ if __name__ == '__main__':
default='00:29:59')
parser.add_argument('--dry', action='store_true', dest='dry', default=False,
help='dry run: do not submit pbs file.')
parser.add_argument('--jobname', type='string', action='store',
dest='jobname', default=None,
help='PBS job name, default: python file name.')
parser.add_argument('--pbs_in', type='string', action='store',
dest='pbs_in', default=None,
help='pbs_in directory, default: pbs_in')
parser.add_argument('--pbs_out', type='string', action='store',
dest='pbs_out', default=None,
help='pbs_out directory, default: pbs_out')
# get all the other arguments and add them to the help
kwargs_pass, parser = addvariableargs(parser)
......@@ -270,4 +279,5 @@ if __name__ == '__main__':
pbs_script, stdout = submit_pbs(fpath=opt.fpath, command=opt.command,
py_env=opt.py_env, queue=opt.queue,
walltime=opt.walltime, dry=opt.dry,
**kwargs_pass)
jobname=opt.jobname, pbs_in=opt.pbs_in,
pbs_out=opt.pbs_out, **kwargs_pass)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment