コード例 #1
0
 def _runScript(self, toilOptions):
     # clean = onSuccess
     disallowedOptions = ['--clean=always', '--retryCount=2']
     newOptions = [
         option for option in toilOptions if option not in disallowedOptions
     ]
     try:
         # include a default memory - on restart the minimum memory requirement is the default, usually 2 GB
         command = [
             '/home/venv/bin/python', self.scriptName, '-e', 'FAIL=true',
             '--defaultMemory=50000000'
         ]
         command.extend(newOptions)
         self.sshUtil(command)
     except subprocess.CalledProcessError:
         pass
     else:
         self.fail('Command succeeded when we expected failure')
     with timeLimit(600):
         command = [
             '/home/venv/bin/python', self.scriptName, '--restart',
             '--defaultMemory=50000000'
         ]
         command.extend(toilOptions)
         self.sshUtil(command)
コード例 #2
0
 def _runScript(self, toilOptions):
     # Use the provisioner in the workflow
     toilOptions.extend([
         '--provisioner=aws', '--batchSystem=mesos',
         '--nodeTypes=' + ",".join(self.instanceTypes),
         '--maxNodes=' + ",".join(self.numWorkers)
     ])
     # clean = onSuccess
     disallowedOptions = ['--clean=always', '--retryCount=2']
     newOptions = [
         option for option in toilOptions if option not in disallowedOptions
     ]
     try:
         # include a default memory - on restart the minimum memory requirement is the default, usually 2 GB
         command = [
             self.python(),
             self.script(), '--setEnv', 'FAIL=true',
             '--defaultMemory=50000000'
         ]
         command.extend(newOptions)
         self.sshUtil(command)
     except subprocess.CalledProcessError:
         pass
     else:
         self.fail('Command succeeded when we expected failure')
     with timeLimit(600):
         command = [
             self.python(),
             self.script(), '--restart', '--defaultMemory=50000000'
         ]
         command.extend(toilOptions)
         self.sshUtil(command)
コード例 #3
0
ファイル: provisionerTest.py プロジェクト: Duke-GCB/toil
 def _runScript(self, toilOptions):
     # clean = onSuccess
     disallowedOptions = ['--clean=always', '--retryCount=2']
     newOptions = [option for option in toilOptions if option not in disallowedOptions]
     try:
         self._leader('python', self.scriptName, self.jobStore, '-e', 'FAIL=true', *newOptions)
     except subprocess.CalledProcessError:
         pass
     else:
         self.fail('Command succeeded when we expected failure')
     with timeLimit(300):
         self._leader('python', self.scriptName, self.jobStore, '--restart', *toilOptions)
コード例 #4
0
ファイル: provisionerTest.py プロジェクト: HPCBio/toil
 def _runScript(self, toilOptions):
     # clean = onSuccess
     disallowedOptions = ["--clean=always", "--retryCount=2"]
     newOptions = [option for option in toilOptions if option not in disallowedOptions]
     try:
         self._leader("python", self.scriptName, self.jobStore, "-e", "FAIL=true", *newOptions)
     except subprocess.CalledProcessError:
         pass
     else:
         self.fail("Command succeeded when we expected failure")
     with timeLimit(300):
         self._leader("python", self.scriptName, self.jobStore, "--restart", *toilOptions)
コード例 #5
0
ファイル: provisionerTest.py プロジェクト: xulong2005/toil
 def _runScript(self, toilOptions):
     # clean = onSuccess
     disallowedOptions = ['--clean=always', '--retryCount=2']
     newOptions = [
         option for option in toilOptions if option not in disallowedOptions
     ]
     try:
         self._leader('python', self.scriptName, self.jobStore, '-e',
                      'FAIL=true', *newOptions)
     except subprocess.CalledProcessError:
         pass
     else:
         self.fail('Command succeeded when we expected failure')
     with timeLimit(300):
         self._leader('python', self.scriptName, self.jobStore, '--restart',
                      *toilOptions)
コード例 #6
0
ファイル: awsProvisionerTest.py プロジェクト: chapmanb/toil
 def _runScript(self, toilOptions):
     # clean = onSuccess
     disallowedOptions = ['--clean=always', '--retryCount=2']
     newOptions = [option for option in toilOptions if option not in disallowedOptions]
     try:
         # include a default memory - on restart the minimum memory requirement is the default, usually 2 GB
         command = ['/home/venv/bin/python', self.scriptName, '-e', 'FAIL=true', '--defaultMemory=50000000']
         command.extend(newOptions)
         self.sshUtil(command)
     except subprocess.CalledProcessError:
         pass
     else:
         self.fail('Command succeeded when we expected failure')
     with timeLimit(600):
         command = ['/home/venv/bin/python', self.scriptName, '--restart', '--defaultMemory=50000000']
         command.extend(toilOptions)
         self.sshUtil(command)