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 tuple of jobID, statusID, and holdReasonCode

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

Returns:

Status as known by DIRAC, and a reason if the job is being held