original_docstring: Creates pbs script(s) for main program and separate executors, if needed
docstring: Creates pbs script(s) for main program and separate executors, if needed
docstring_tokens: Creates pbs script ( s ) for main program and separate executors if needed
code: def createAndSubmitPbsScripts(self): 
          """Creates pbs script(s) for main program and separate executors, if needed"""       
          time_remaining = self.job_lifetime
          serverJobId = None
          while time_remaining > 0:
              t = max(self.min_walltime, time_remaining)
              if self.max_walltime is not None:
                  t = min(t, self.max_walltime)
              time_remaining -= t
              serverJobId = self.createAndSubmitMainJobFile(time=t, afterany=serverJobId)
              try:
                  serverJobId = serverJobId.decode('ascii')
              except AttributeError:
                  pass
              if self.numexec >= 2:
                  for i in range(1, self.numexec):
                      self.createAndSubmitExecutorJobFile(i, time=t, after=serverJobId)
              # in principle a server could overlap the previous generation of clients,
              # but at present the clients just die within seconds
code_tokens: def createAndSubmitPbsScripts ( self ) : time_remaining = self . job_lifetime serverJobId = None while time_remaining > 0 : t = max ( self . min_walltime , time_remaining ) if self . max_walltime is not None : t = min ( t , self . max_walltime ) time_remaining -= t serverJobId = self . createAndSubmitMainJobFile ( time = t , afterany = serverJobId ) try : serverJobId = serverJobId . decode ( 'ascii' ) except AttributeError : pass if self . numexec >= 2 : for i in range ( 1 , self . numexec ) : self . createAndSubmitExecutorJobFile ( i , time = t , after = serverJobId )
short_docstring: Creates pbs script(s) for main program and separate executors, if needed
short_docstring_tokens: Creates pbs script ( s ) for main program and separate executors if needed
comment: """Creates pbs script(s) for main program and separate executors, if needed"""$SEP$# in principle a server could overlap the previous generation of clients,$SEP$# but at present the clients just die within seconds