The simplest of the “inner” CEs (meaning it’s used by a jobAgent inside a pilot)

A “InProcess” CE instance submits jobs in the current process. This is the standard “inner CE” invoked from the JobAgent, main alternative being the PoolCE

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

Bases: DIRAC.Resources.Computing.ComputingElement.ComputingElement


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 waiting jobs, as well as number of available processors


Get CE description as a dictionary.

This is called by the JobAgent for the case of “inner” CEs.


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


Instantiate object representing the backend batch system

monitorProxy(pilotProxy, payloadProxy)

Monitor the payload proxy and renew as necessary.

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, **kwargs)

Method to submit job (overriding base method).

  • executableFile (str) – file to execute via systemCall. Normally the JobWrapperTemplate when invoked by the JobAgent.
  • proxy (str) – the proxy used for running the job (the payload). It will be dumped to a file.

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