Пример #1
0
	def checkJobs(self, htcIDs, queryArguments):
		queryProc = self._condor_q(htcIDs, queryAttributes = queryArguments)
		if queryProc.wait(timeout = self._adapterMaxWait):
			queryProc.logError(self.parentPool.errorLog, brief=True)
			return []
		queryInfoMaps = parseKWListIter(queryProc.iter())
		return self._digestQueryInfoMap(queryInfoMaps, queryArguments)
Пример #2
0
	def submitJobs(self, jobNumList, task, queryArguments):
		jdlFilePath = self._prepareSubmit(task, jobNumList, queryArguments)
		submitProc = self._condor_submit(jdlFilePath)
		if submitProc.wait(timeout = self._adapterMaxWait):
			submitProc.logError(self.parentPool.errorLog, brief=True)
			return []
		queryInfoMaps = parseKWListIter(submitProc.iter(), jobDelimeter = lambda line: line.startswith('** Proc'))
		return self._digestQueryInfoMap(queryInfoMaps, queryArguments)