enable job names
git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@1582 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
parent
f3f5e849cb
commit
8c33dd2393
|
|
@ -6,7 +6,7 @@ import re
|
|||
|
||||
#justPrintCommands = False
|
||||
|
||||
def cmd(cmd_str_from_user, farm_queue=False, output_head=None, just_print_commands=False, outputFile = None, waitID = None):
|
||||
def cmd(cmd_str_from_user, farm_queue=False, output_head=None, just_print_commands=False, outputFile = None, waitID = None, jobName = None):
|
||||
# if farm_queue is non-False, submits to queue, other
|
||||
|
||||
if farm_queue:
|
||||
|
|
@ -25,6 +25,9 @@ def cmd(cmd_str_from_user, farm_queue=False, output_head=None, just_print_comman
|
|||
if waitID <> None:
|
||||
cmd_str += " -w \"ended(%s)\"" % (str(waitID))
|
||||
|
||||
if jobName <> None:
|
||||
cmd_str += " -J %s" % (jobName)
|
||||
|
||||
cmd_str += " \""+cmd_str_from_user + "\""
|
||||
|
||||
print ">>> Farming via "+cmd_str
|
||||
|
|
|
|||
Loading…
Reference in New Issue