Example #1
0
 def __init__(self, config, name):
     PBSGECommon.__init__(self, config, name)
     self._user = config.get('user',
                             os.environ.get('LOGNAME', ''),
                             onChange=None)
     self._project = config.get('project name', '', onChange=None)
     self._configExec = utils.resolveInstallPath('qconf')
Example #2
0
	def __init__(self, config, name):
		cancel_executor = CancelJobsWithProcessBlind(config, 'qdel',
			fmt=lambda wms_id_list: lmap(self._fqid, wms_id_list), unknown_id='Unknown Job Id')
		PBSGECommon.__init__(self, config, name,
			cancel_executor=cancel_executor,
			check_executor=CheckJobsMissingState(config, PBSCheckJobs(config, self._fqid)),
			nodes_finder=PBSDiscoverNodes(config), queues_finder=PBSDiscoverQueues(config))
		self._server = config.get('server', '', on_change=None)
Example #3
0
	def __init__(self, config, name):
		cancelExecutor = CancelJobsWithProcessBlind(config, 'qdel',
			fmt = lambda wmsIDs: lmap(self._fqid, wmsIDs), unknownID = 'Unknown Job Id')
		PBSGECommon.__init__(self, config, name,
			cancelExecutor = cancelExecutor,
			checkExecutor = CheckJobsMissingState(config, PBS_CheckJobs(config, self._fqid)))
		self._nodes_finder = PBS_Discover_Nodes(config)
		self._queues_finder = PBS_Discover_Queues(config)
		self._server = config.get('server', '', onChange = None)
Example #4
0
	def __init__(self, config, name):
		cancelExecutor = CancelJobsWithProcessBlind(config, 'qdel',
			fmt = lambda wmsIDs: [str.join(',', wmsIDs)], unknownID = ['Unknown Job Id'])
		PBSGECommon.__init__(self, config, name,
			cancelExecutor = cancelExecutor,
			checkExecutor = CheckJobsMissingState(config, GridEngine_CheckJobs(config)),
			nodesFinder = GridEngine_Discover_Nodes(config),
			queuesFinder = GridEngine_Discover_Queues(config))
		self._project = config.get('project name', '', onChange = None)
		self._configExec = utils.resolveInstallPath('qconf')
	def __init__(self, config, name):
		cancel_executor = CancelJobsWithProcessBlind(config, 'qdel',
			fmt=lambda wms_id_list: [str.join(',', wms_id_list)], unknown_id='Unknown Job Id')
		PBSGECommon.__init__(self, config, name,
			cancel_executor=cancel_executor,
			check_executor=CheckJobsMissingState(config, GridEngineCheckJobs(config)),
			nodes_finder=GridEngineDiscoverNodes(config),
			queues_finder=GridEngineDiscoverQueues(config))
		self._project = config.get('project name', '', on_change=None)
		self._config_exec = resolve_install_path('qconf')
Example #6
0
 def __init__(self, config, name):
     cancelExecutor = CancelJobsWithProcessBlind(
         config,
         'qdel',
         fmt=lambda wmsIDs: lmap(self._fqid, wmsIDs),
         unknownID='Unknown Job Id')
     PBSGECommon.__init__(self,
                          config,
                          name,
                          cancelExecutor=cancelExecutor,
                          checkExecutor=CheckJobsMissingState(
                              config, PBS_CheckJobs(config, self._fqid)))
     self._nodes_finder = PBS_Discover_Nodes(config)
     self._queues_finder = PBS_Discover_Queues(config)
     self._server = config.get('server', '', onChange=None)
Example #7
0
 def __init__(self, config, name):
     cancel_executor = CancelJobsWithProcessBlind(
         config,
         'qdel',
         fmt=lambda wms_id_list: lmap(self._fqid, wms_id_list),
         unknown_id='Unknown Job Id')
     PBSGECommon.__init__(self,
                          config,
                          name,
                          cancel_executor=cancel_executor,
                          check_executor=CheckJobsMissingState(
                              config, PBSCheckJobs(config, self._fqid)),
                          nodes_finder=PBSDiscoverNodes(config),
                          queues_finder=PBSDiscoverQueues(config))
     self._server = config.get('server', '', on_change=None)
Example #8
0
 def __init__(self, config, name):
     cancel_executor = CancelJobsWithProcessBlind(
         config,
         'qdel',
         fmt=lambda wms_id_list: [str.join(',', wms_id_list)],
         unknown_id='Unknown Job Id')
     PBSGECommon.__init__(self,
                          config,
                          name,
                          cancel_executor=cancel_executor,
                          check_executor=CheckJobsMissingState(
                              config, GridEngineCheckJobs(config)),
                          nodes_finder=GridEngineDiscoverNodes(config),
                          queues_finder=GridEngineDiscoverQueues(config))
     self._project = config.get('project name', '', on_change=None)
     self._config_exec = resolve_install_path('qconf')
 def __init__(self, config, name):
     cancelExecutor = CancelJobsWithProcessBlind(
         config,
         'qdel',
         fmt=lambda wmsIDs: [str.join(',', wmsIDs)],
         unknownID=['Unknown Job Id'])
     PBSGECommon.__init__(self,
                          config,
                          name,
                          cancelExecutor=cancelExecutor,
                          checkExecutor=CheckJobsMissingState(
                              config, GridEngine_CheckJobs(config)),
                          nodesFinder=GridEngine_Discover_Nodes(config),
                          queuesFinder=GridEngine_Discover_Queues(config))
     self._project = config.get('project name', '', onChange=None)
     self._configExec = utils.resolveInstallPath('qconf')
Example #10
0
 def getSubmitArguments(self, jobNum, jobName, reqs, sandbox, stdout,
                        stderr):
     timeStr = lambda s: '%02d:%02d:%02d' % (s / 3600,
                                             (s / 60) % 60, s % 60)
     reqMap = {
         WMS.MEMORY: ('h_vmem', lambda m: '%dM' % m),
         WMS.WALLTIME: ('s_rt', timeStr),
         WMS.CPUTIME: ('h_cpu', timeStr)
     }
     # Restart jobs = no
     params = ' -r n -notify'
     if self._project:
         params += ' -P %s' % self._project
     # Job requirements
     (queue, nodes) = (reqs.get(WMS.QUEUES, [''])[0], reqs.get(WMS.SITES))
     if not nodes and queue:
         params += ' -q %s' % queue
     elif nodes and queue:
         params += ' -q %s' % str.join(
             ',', imap(lambda node: '%s@%s' % (queue, node), nodes))
     elif nodes:
         raise ConfigError(
             'Please also specify queue when selecting nodes!')
     return params + PBSGECommon.getCommonSubmitArguments(
         self, jobNum, jobName, reqs, sandbox, stdout, stderr, reqMap)
Example #11
0
	def getSubmitArguments(self, jobNum, jobName, reqs, sandbox, stdout, stderr):
		reqMap = { WMS.MEMORY: ('pvmem', lambda m: '%dmb' % m) }
		params = PBSGECommon.getCommonSubmitArguments(self, jobNum, jobName, reqs, sandbox, stdout, stderr, reqMap)
		# Job requirements
		if reqs.get(WMS.QUEUES):
			params += ' -q %s' % reqs[WMS.QUEUES][0]
		if reqs.get(WMS.SITES):
			params += ' -l host=%s' % str.join('+', reqs[WMS.SITES])
		return params
Example #12
0
	def getSubmitArguments(self, jobNum, jobName, reqs, sandbox, stdout, stderr):
		reqMap = { WMS.MEMORY: ('pvmem', lambda m: '%dmb' % m) }
		params = PBSGECommon.getSubmitArguments(self, jobNum, jobName, reqs, sandbox, stdout, stderr, reqMap)
		# Job requirements
		if reqs.get(WMS.QUEUES):
			params += ' -q %s' % reqs[WMS.QUEUES][0]
		if reqs.get(WMS.SITES):
			params += ' -l host=%s' % str.join('+', reqs[WMS.SITES])
		return params
	def getSubmitArguments(self, jobNum, jobName, reqs, sandbox, stdout, stderr):
		timeStr = lambda s: '%02d:%02d:%02d' % (s / 3600, (s / 60) % 60, s % 60)
		reqMap = { WMS.MEMORY: ('h_vmem', lambda m: '%dM' % m),
			WMS.WALLTIME: ('s_rt', timeStr), WMS.CPUTIME: ('h_cpu', timeStr) }
		# Restart jobs = no
		params = ' -r n -notify'
		if self._project:
			params += ' -P %s' % self._project
		# Job requirements
		(queue, nodes) = (reqs.get(WMS.QUEUES, [''])[0], reqs.get(WMS.SITES))
		if not nodes and queue:
			params += ' -q %s' % queue
		elif nodes and queue:
			params += ' -q %s' % str.join(',', imap(lambda node: '%s@%s' % (queue, node), nodes))
		elif nodes:
			raise ConfigError('Please also specify queue when selecting nodes!')
		return params + PBSGECommon.getCommonSubmitArguments(self, jobNum, jobName, reqs, sandbox, stdout, stderr, reqMap)
 def getSubmitArguments(self, jobNum, jobName, reqs, sandbox, stdout, stderr):
     timeStr = lambda s: "%02d:%02d:%02d" % (s / 3600, (s / 60) % 60, s % 60)
     reqMap = {
         WMS.MEMORY: ("h_vmem", lambda m: "%dM" % m),
         WMS.WALLTIME: ("s_rt", timeStr),
         WMS.CPUTIME: ("h_cpu", timeStr),
     }
     # Restart jobs = no
     params = " -r n"
     if self._project:
         params += " -P %s" % self._project
         # Job requirements
     (queue, nodes) = (reqs.get(WMS.QUEUES, [""])[0], reqs.get(WMS.SITES))
     if not nodes and queue:
         params += " -q %s" % queue
     elif nodes and queue:
         params += " -q %s" % str.join(",", map(lambda node: "%s@%s" % (queue, node), nodes))
     elif nodes:
         raise ConfigError("Please also specify queue when selecting nodes!")
     return params + PBSGECommon.getSubmitArguments(self, jobNum, jobName, reqs, sandbox, stdout, stderr, reqMap)
Example #15
0
 def __init__(self, config, name):
     PBSGECommon.__init__(self, config, name)
     self._nodesExec = utils.resolveInstallPath('pbsnodes')
     self._server = config.get('server', '', onChange=None)
     self._fqid = lambda wmsId: utils.QM(self._server, '%s.%s' %
                                         (wmsId, self._server), wmsId)
Example #16
0
	def __init__(self, config, name):
		PBSGECommon.__init__(self, config, name)
		self._nodesExec = utils.resolveInstallPath('pbsnodes')
		self._server = config.get('server', '', onChange = None)
		self._fqid = lambda wmsId: utils.QM(self._server, '%s.%s' % (wmsId, self._server), wmsId)
 def __init__(self, config, name):
     PBSGECommon.__init__(self, config, name)
     self._user = config.get("user", os.environ.get("LOGNAME", ""), onChange=None)
     self._project = config.get("project name", "", onChange=None)
     self._configExec = utils.resolveInstallPath("qconf")
	def __init__(self, config, name):
		PBSGECommon.__init__(self, config, name)
		self._user = config.get('user', os.environ.get('LOGNAME', ''), onChange = None)
		self._project = config.get('project name', '', onChange = None)
		self._configExec = utils.resolveInstallPath('qconf')