original_docstring: Submit job to batch queueing system
docstring: Submit job to batch queueing system
docstring_tokens: Submit job to batch queueing system
code: def submitJob(self, jobName, after=None, afterany=None):
          """Submit job to batch queueing system"""
          os.environ['PYRO_LOGFILE'] = jobName + '.log'
          # use -V to get all (Pyro) variables, incl. PYRO_LOGFILE
          cmd = ['qsub', '-o', jobName + '-o.log', '-e', jobName + '-e.log', '-V']
          if after is not None:
              cmd += ['-Wdepend=after:' + after]
          if afterany is not None:
              cmd += ['-Wdepend=afterany:' + afterany]
          cmd += ['-Wumask=0137', self.jobFileName]
          out = subprocess.check_output(cmd)
          jobId = out.strip()
          print(' '.join(cmd))
          print(jobId)
          print("Submitted!")
          return jobId
code_tokens: def submitJob ( self , jobName , after = None , afterany = None ) : os . environ [ 'PYRO_LOGFILE' ] = jobName + '.log' cmd = [ 'qsub' , '-o' , jobName + '-o.log' , '-e' , jobName + '-e.log' , '-V' ] if after is not None : cmd += [ '-Wdepend=after:' + after ] if afterany is not None : cmd += [ '-Wdepend=afterany:' + afterany ] cmd += [ '-Wumask=0137' , self . jobFileName ] out = subprocess . check_output ( cmd ) jobId = out . strip ( ) print ( ' ' . join ( cmd ) ) print ( jobId ) print ( "Submitted!" ) return jobId
short_docstring: Submit job to batch queueing system
short_docstring_tokens: Submit job to batch queueing system
comment: """Submit job to batch queueing system"""$SEP$# use -V to get all (Pyro) variables, incl. PYRO_LOGFILE