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)
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)
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)
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)
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)
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)