def fillParameterInfo(self, pNum, result):
		if 'WALLTIME' in result:
			result[ParameterInfo.REQS].append((WMS.WALLTIME, parseTime(result.pop('WALLTIME'))))
		if 'CPUTIME' in result:
			result[ParameterInfo.REQS].append((WMS.CPUTIME, parseTime(result.pop('CPUTIME'))))
		if 'MEMORY' in result:
			result[ParameterInfo.REQS].append((WMS.MEMORY, int(result.pop('MEMORY'))))
Esempio n. 2
0
 def fillParameterInfo(self, pNum, result):
     if 'WALLTIME' in result:
         result[ParameterInfo.REQS].append(
             (WMS.WALLTIME, parseTime(result.pop('WALLTIME'))))
     if 'CPUTIME' in result:
         result[ParameterInfo.REQS].append(
             (WMS.CPUTIME, parseTime(result.pop('CPUTIME'))))
     if 'MEMORY' in result:
         result[ParameterInfo.REQS].append(
             (WMS.MEMORY, int(result.pop('MEMORY'))))
Esempio n. 3
0
 def str2obj(value):
     try:
         return parseTime(
             value)  # empty or negative values are mapped to -1
     except Exception:
         raise ConfigError(
             'Valid time expressions have the format: hh[:mm[:ss]]')
	def __init__(self, arg, **kwargs):
		self.time_threshold = parseTime(arg)
		def str2obj(value):
			try:
				return parseTime(value) # empty or negative values are mapped to -1
			except Exception:
				raise ConfigError('Valid time expressions have the format: hh[:mm[:ss]]')
Esempio n. 6
0
 def __init__(self, arg, **kwargs):
     self._time_threshold = parseTime(arg)