Condor

Condor.py is a DIRAC independent class representing Condor batch system. Condor objects are used as backend batch system representation for LocalComputingElement and SSHComputingElement classes

class DIRAC.Resources.Computing.BatchSystems.Condor.Condor

Bases: object

getCEStatus(**kwargs)

Get the overall status of the CE

getJobStatus(**kwargs)

Get status of the jobs in the given list

killJob(**kwargs)

Kill jobs in the given list

submitJob(**kwargs)

Submit nJobs to the Condor batch system

DIRAC.Resources.Computing.BatchSystems.Condor.parseCondorStatus(lines, jobID)

parse the condor_q or condor_history output for the job status

Parameters
  • lines (list) – list of lines from the output of the condor commands, each line is a pair of jobID and statusID

  • jobID (str) – jobID of condor job, e.g.: 123.53

Returns

Status as known by DIRAC

DIRAC.Resources.Computing.BatchSystems.Condor.treatCondorHistory(condorHistCall, qList)

concatenate clusterID and processID to get the same output as condor_q until we can expect condor version 8.5.3 everywhere

Parameters
  • condorHistCall (str) – condor_history command to run

  • qList (list) – list of jobID and status from condor_q output, will be modified in this function

Returns

None