HTCondorCE Computing Element

Allows direct submission to HTCondorCE Computing Elements with a SiteDirector Agent Needs the condor grid middleware (condor_submit, condor_history, condor_q, condor_rm)

Configuration for the HTCondorCE submission can be done via the configuration system

WorkingDirectory: Location to store the pilot and condor log files
DaysToKeepLogs:  how long to keep the log files until they are removed
ExtraSubmitString: Additional option for the condor submit file, separate options with '\n', for example:
   request_cpus = 8 \n periodic_remove = ...
UseLocalSchedd: If False, directly submit to a remote condor schedule daemon,
then one does not need to run condor daemons on the submit machine

see HTCondorCE Parameters

class DIRAC.Resources.Computing.HTCondorCEComputingElement.HTCondorCEComputingElement(ceUniqueID)

Bases: DIRAC.Resources.Computing.ComputingElement.ComputingElement

HTCondorCE computing element class implementing the functions jobSubmit, getJobOutput


Standard constructor.


This method returns the number of available slots in the target CE. The CE instance polls for waiting and running jobs and compares to the limits in the CE parameters.

Parameters:jobIDList (list) – list of already existing job IDs to be checked against

Method to return information on running and pending jobs.


Get CE description as a dictionary

getJobOutput(jobID, _localDir=None)

TODO: condor can copy the output automatically back to the submission, so we just need to pick it up from the proper folder


Get the status information for the given list of jobs


Get the CE complete parameter dictionary


Initialize the CE parameters after they are collected from various sources


Check if the stored proxy is valid


Check the sanity of the Computing Element definition


Kill the specified jobs


Instantiate object representing the backend batch system

sendOutput(stdid, line)

Callback function such that the results from the CE may be returned.


Update the CPUTime parameter of the CE classAd, necessary for running in filling mode


Add parameters from the given dictionary overriding the previous values

Parameters:ceOptions (dict) – CE parameters dictionary to update already defined ones
setProxy(proxy, valid=0)

Set proxy for this instance

submitJob(executableFile, proxy, numberOfJobs=1)

Method to submit job


CE helper function to write a CE proxy string to a file.


return tuple of “jobURL” and condorID from the jobRef string

DIRAC.Resources.Computing.HTCondorCEComputingElement.findFile(workingDir, fileName)

find a pilot out, err, log file


return the location of the logFile belonging to the pilot reference