default=[],metavar='ID',nargs='*',help='set job dependencies by giving this option an a list of job identifiers separated by spaces')
parser.add_argument('-o','--stdout','--out',metavar='DIR',dest='stdout',default='logs',help='Set the standard output of the job to be placed in the given directory - relative paths are interpreted according to the currently working directory or the home directory if the option --cwd was not given')
parser.add_argument('-e','--stderr','--err',metavar='DIR',dest='stderr',default='logs',help='Set the standard error of the job to be placed in the given directory - relative paths are interpreted according to the currently working directory or the home directory if the option --cwd was not given')
parser.add_argument('-o','--stdout','--out',metavar='DIR',dest='stdout',default='logs',help='Set the standard output of the job to be placed in the given directory - relative paths are interpreted according to the currently working directory (defaults to "%(default)s")')
parser.add_argument('-e','--stderr','--err',metavar='DIR',dest='stderr',default='logs',help='Set the standard error of the job to be placed in the given directory - relative paths are interpreted according to the currently working directory (defaults to "%(default)s")')
dest='array',help='Creates a parametric (array) job. You must specify the starting range "n" (>=1), the stopping (inclusive) range "m" and the step "s". Read the qsub command man page for details')
"""Hack taken from https://gist.github.com/471779 to allow aliases in
...
...
@@ -253,42 +271,29 @@ def main():
parser.add_argument('-d','--database',metavar='FILE',dest='db',help='replace the default database by one provided by you; this option is only required if you are running outside the directory where you originally submitted the jobs from or if you have altered manually the location of the JobManager database')
help='refreshes the current list of executing jobs by querying SGE, updates the databases of currently executing jobs. If you wish, it may optionally save jobs that executed successfuly and/or failed execution')
refparser.add_argument('-s','--no-success-db',default='success.db',action='store_false',dest='successdb',help='if you provide a name of a file, jobs that have succeeded will be saved on this file')
help='if you provide a name of a file, jobs that have failed will be saved on this file')
refparser.add_argument('-s','--no-success-db',default='success.db',action='store_false',dest='successdb',help='if you provide a name of a file, jobs that have succeeded will be saved on this file (defaults to "%(default)s")')
refparser.add_argument('-f','--no-fail-db',dest='faildb',default='failure.db',action='store_false',help='if you provide a name of a file, jobs that have failed will be saved on this file (defaults to "%(default)s")')
default=[],help='by default I\'ll explain all jobs, unless you limit giving job identifiers. Identifiers that contain a "." (dot) limits the explanation of a certain job only to a subjob in a parametric array. Everything that comes after the dot is ignored if the job is non-parametric.')
default=[],help='by default I\'ll clean-up all jobs, unless you limit giving job identifiers')
cleanparser.add_argument('-r','--remove-job',dest='remove_job',default=False,action='store_true',help='if set I\'ll also remove the job reference from the database')
default='/idiap/group/torch5spro/nightlies/last',help='the root directory of a valid torch installation (defaults to %(default)s)')
tsubparser.add_argument('-D','--torch-debug',dest='torch_debug',default=False,action='store_true',help='if set I\'ll setup the torch environment in debug mode')
default=[],help='by default I\'ll re-submit all jobs, unless you limit giving job identifiers')
resubparser.add_argument('-r','--cleanup',dest='cleanup',default=False,action='store_true',help='if set I\'ll also remove the old logs if they exist and the re-submitted job from the re-submission database')
resubparser.add_argument('-x','--dependencies','--deps',dest='deps',type=int,default=[],metavar='ID',nargs='*',help='when you re-submit jobs, dependencies are reset; if you need dependencies, add them using this variable')