Beispiel #1
0
 def __init__(self, config):
     CheckJobsWithProcess.__init__(
         self, config,
         ProcessCreatorAppendArguments(config, 'job_queue', ['-l']), {
             Job.QUEUED: ['s'],
             Job.RUNNING: ['r'],
             Job.DONE: ['CG'],
             Job.WAITING: ['w']
         })
	def __init__(self, config):
		CheckJobsWithProcess.__init__(self, config,
			ProcessCreatorAppendArguments(config, 'condor_q', ['-long']), status_map={
				Job.ABORTED: [3],        # removed
				Job.DONE: [4],           # completed
				Job.FAILED: [6],         # submit error
				Job.READY: [1],          # idle (waiting for a machine to execute on)
				Job.RUNNING: [2],
				Job.WAITING: [0, 5, 7],  # unexpanded (never been run); DISABLED (on hold); suspended
			})
Beispiel #3
0
	def __init__(self, config):
		proc_factory = ProcessCreatorAppendArguments(config,
			'sacct', ['-n', '-o', 'jobid,partition,state,exitcode', '-j'], lambda wmsIDs: [str.join(',', wmsIDs)])
		CheckJobsWithProcess.__init__(self, config, proc_factory, status_map = {
			'PENDING': Job.WAITING,    # idle (waiting for a machine to execute on)
			'RUNNING': Job.RUNNING,    # running
			'COMPLETED': Job.DONE,     # running
			'COMPLETING': Job.DONE,    # running
			'CANCELLED+': Job.ABORTED, # removed
			'NODE_FAIL': Job.ABORTED,  # removed
			'CANCELLED': Job.ABORTED,  # removed
			'FAILED': Job.ABORTED,     # submit error
		})
Beispiel #4
0
 def __init__(self, config):
     CheckJobsWithProcess.__init__(
         self,
         config,
         ProcessCreatorAppendArguments(config, 'condor_q', ['-long']),
         status_map={
             0: Job.WAITING,  # unexpanded (never been run)
             1: Job.READY,  # idle (waiting for a machine to execute on)
             2: Job.RUNNING,  # running
             3: Job.ABORTED,  # removed
             4: Job.DONE,  # completed
             5: Job.WAITING,  # DISABLED; on hold
             6: Job.FAILED,  # submit error
             7: Job.WAITING,  # suspended
         })
Beispiel #5
0
 def __init__(self, config, fqid_fun=identity):
     proc_factory = ProcessCreatorAppendArguments(
         config, 'qstat', ['-f'],
         lambda wms_id_list: lmap(fqid_fun, wms_id_list))
     CheckJobsWithProcess.__init__(self,
                                   config,
                                   proc_factory,
                                   status_map={
                                       Job.DONE:
                                       ['C', 'E', 'T', 'fail', 'success'],
                                       Job.QUEUED: ['Q'],
                                       Job.RUNNING: ['R'],
                                       Job.SUBMITTED: ['H', 'S'],
                                       Job.WAITING: ['W'],
                                   })
Beispiel #6
0
 def __init__(self, config):
     proc_factory = ProcessCreatorAppendArguments(
         config, 'sacct',
         ['-n', '-o', 'jobid,partition,state,exitcode', '-j'],
         lambda wms_id_list: [str.join(',', wms_id_list)])
     CheckJobsWithProcess.__init__(
         self,
         config,
         proc_factory,
         status_map={
             Job.ABORTED:
             ['CANCELLED+', 'NODE_FAIL', 'CANCELLED', 'FAILED'],
             Job.DONE: ['COMPLETED', 'COMPLETING'],
             Job.RUNNING: ['RUNNING'],
             Job.WAITING: ['PENDING'],
         })
Beispiel #7
0
 def __init__(self, config):
     CheckJobsWithProcess.__init__(self,
                                   config,
                                   ProcessCreatorAppendArguments(
                                       config, 'arcstat', ['-all']),
                                   status_map={
                                       Job.ABORTED: ['deleted', 'failed'],
                                       Job.CANCELLED: ['killed'],
                                       Job.DONE: ['finished'],
                                       Job.QUEUED: ['accepted', 'queuing'],
                                       Job.READY: ['preparing'],
                                       Job.RUNNING:
                                       ['finishing', 'running'],
                                       Job.SUBMITTED: ['submitting'],
                                       Job.WAITING: ['hold', 'other'],
                                   })
Beispiel #8
0
 def __init__(self, config):
     proc_factory = ProcessCreatorAppendArguments(
         config, 'glite-ce-job-status',
         ['--level', '0', '--logfile', '/dev/stderr'])
     CheckJobsWithProcess.__init__(self,
                                   config,
                                   proc_factory,
                                   status_map={
                                       Job.ABORTED:
                                       ['ABORTED', 'CANCELLED'],
                                       Job.DONE: ['DONE-FAILED', 'DONE-OK'],
                                       Job.QUEUED: ['IDLE', 'REGISTERED'],
                                       Job.RUNNING:
                                       ['REALLY-RUNNING', 'RUNNING'],
                                       Job.UNKNOWN: ['UNKNOWN'],
                                       Job.WAITING: ['HELD', 'PENDING'],
                                   })
Beispiel #9
0
 def __init__(self, config):
     CheckJobsWithProcess.__init__(self,
                                   config,
                                   ProcessCreatorAppendArguments(
                                       config, 'bjobs', ['-aw']),
                                   status_map={
                                       'PEND': Job.QUEUED,
                                       'PSUSP': Job.WAITING,
                                       'USUSP': Job.WAITING,
                                       'SSUSP': Job.WAITING,
                                       'RUN': Job.RUNNING,
                                       'DONE': Job.DONE,
                                       'WAIT': Job.WAITING,
                                       'EXIT': Job.FAILED,
                                       'UNKWN': Job.FAILED,
                                       'ZOMBI': Job.FAILED,
                                   })
Beispiel #10
0
 def __init__(self, config, fqid_fun=identity):
     proc_factory = ProcessCreatorAppendArguments(
         config, 'qstat', ['-f'], lambda wmsIDs: lmap(fqid_fun, wmsIDs))
     CheckJobsWithProcess.__init__(self,
                                   config,
                                   proc_factory,
                                   status_map={
                                       'H': Job.SUBMITTED,
                                       'S': Job.SUBMITTED,
                                       'W': Job.WAITING,
                                       'Q': Job.QUEUED,
                                       'R': Job.RUNNING,
                                       'C': Job.DONE,
                                       'E': Job.DONE,
                                       'T': Job.DONE,
                                       'fail': Job.DONE,
                                       'success': Job.DONE,
                                   })
Beispiel #11
0
 def __init__(self, config):
     CancelJobsWithProcess.__init__(
         self, config, ProcessCreatorAppendArguments(config, 'condor_rm'))
Beispiel #12
0
	def __init__(self, config):
		CheckJobsWithProcess.__init__(self, config,
			ProcessCreatorAppendArguments(config, 'job_queue', ['-l']),
			{'s': Job.QUEUED, 'r': Job.RUNNING, 'CG': Job.DONE, 'w': Job.WAITING})
Beispiel #13
0
 def __init__(self, config):
     CheckJobsWithProcess.__init__(
         self, config,
         ProcessCreatorAppendArguments(config, 'ps', ['wwup']))
Beispiel #14
0
	def __init__(self, config, cmd, args=None, fmt=identity, unknown_id=None):
		proc_factory = ProcessCreatorAppendArguments(config, cmd, args, fmt)
		CancelJobsWithProcess.__init__(self, config, proc_factory)
		self._blacklist = None
		if unknown_id is not None:
			self._blacklist = [unknown_id]