Fix qdo job name setting.
util/qdo: Don't automatically set qsub job name, as this causes qsub to fail if the job name is too long or otherwise unsuitable. --HG-- extra : convert_revision : 5ba48767574efaaff2c328549adee295780f7f70
This commit is contained in:
parent
b7b8ffa7b7
commit
5540021d89
1 changed files with 7 additions and 3 deletions
10
util/qdo
10
util/qdo
|
@ -60,8 +60,11 @@ if cmd == []:
|
||||||
print >>sys.stderr, "%s: missing command" % progname
|
print >>sys.stderr, "%s: missing command" % progname
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
if not options.job_name:
|
# If we want to do this, need to add check here to make sure cmd[0] is
|
||||||
options.job_name = cmd[0]
|
# a valid PBS job name, else qsub will die on us.
|
||||||
|
#
|
||||||
|
#if not options.job_name:
|
||||||
|
# options.job_name = cmd[0]
|
||||||
|
|
||||||
cwd = os.getcwd()
|
cwd = os.getcwd()
|
||||||
|
|
||||||
|
@ -144,7 +147,8 @@ if False and len(cmd) > 50:
|
||||||
print "%s: running %s on poolfs" % (progname, cmd[0])
|
print "%s: running %s on poolfs" % (progname, cmd[0])
|
||||||
else:
|
else:
|
||||||
shell_cmd = 'qsub -I -S /bin/sh'
|
shell_cmd = 'qsub -I -S /bin/sh'
|
||||||
shell_cmd += ' -N "%s"' % options.job_name
|
if options.job_name:
|
||||||
|
shell_cmd += ' -N "%s"' % options.job_name
|
||||||
if options.dest_queue:
|
if options.dest_queue:
|
||||||
shell_cmd += ' -q ' + options.dest_queue
|
shell_cmd += ' -q ' + options.dest_queue
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue