JobManagerHandler

JobManagerHandler is the implementation of the JobManager service in the DISET framework

The following methods are available in the Service interface

submitJob() rescheduleJob() deleteJob() killJob()

class DIRAC.WorkloadManagementSystem.Service.JobManagerHandler.JobManagerHandler(handlerInitDict, trid)

Bases: DIRAC.Core.DISET.RequestHandler.RequestHandler

RequestHandler implementation of the JobManager

exception ConnectionError(msg)

Bases: exceptions.Exception

__init__(msg)

x.__init__(…) initializes x; see help(type(x)) for signature

args
message
__init__(handlerInitDict, trid)

Constructor

Parameters:
  • handlerInitDict (dictionary) – Information vars for the service
  • trid (object) – Transport to use
auth_ping = ['all']
export_confirmBulkSubmission(jobIDs)

Confirm the possibility to proceed with processing of the jobs specified by the jobIDList

Parameters:jobIDList – list of job IDs
Returns:confirmed job IDs
export_deleteJob(jobIDs)

Delete jobs specified in the jobIDs list

Parameters:jobIDList – list of job IDs
Returns:S_OK/S_ERROR
static export_echo(data)

This method used for testing the performance of a service

export_getMaxParametricJobs()

Get the maximum number of parametric jobs

export_killJob(jobIDs)

Kill jobs specified in the jobIDs list

Parameters:jobIDList – list of job IDs
Returns:S_OK/S_ERROR
export_ping()
export_rescheduleJob(jobIDs)

Reschedule a single job. If the optional proxy parameter is given it will be used to refresh the proxy in the Proxy Repository

Parameters:jobIDList – list of job IDs
Returns:confirmed job IDs
export_resetJob(jobIDs)

Reset jobs specified in the jobIDs list

Parameters:jobIDList – list of job IDs
Returns:S_OK/S_ERROR
export_submitJob(jobDesc)

Submit a job to DIRAC WMS. The job can be a single job, or a parametric job. If it is a parametric job, then the parameters will need to be unpacked.

Parameters:jobDesc (str) – job description JDL (of a single or parametric job)
Returns:S_OK/S_ERROR, a list of newly created job IDs in case of S_OK.
classmethod getCSOption(optionName, defaultValue=False)

Get an option from the CS section of the services

Returns:Value for serviceSection/optionName in the CS being defaultValue the default
getRemoteAddress()

Get the address of the remote peer.

Returns:Address of remote peer.
getRemoteCredentials()

Get the credentials of the remote peer.

Returns:Credentials dictionary of remote peer.
initialize()

Initialize this instance of the handler (to be overwritten)

classmethod initializeHandler(serviceInfoDict)
srv_disconnect(trid=None)
classmethod srv_disconnectClient(trid)
srv_getActionTuple()
classmethod srv_getCSOption(optionName, defaultValue=False)

Get an option from the CS section of the services

Returns:Value for serviceSection/optionName in the CS being defaultValue the default
srv_getClientSetup()
srv_getClientVO()
srv_getFormattedRemoteCredentials()
classmethod srv_getMonitor()
srv_getRemoteAddress()

Get the address of the remote peer.

Returns:Address of remote peer.
srv_getRemoteCredentials()

Get the credentials of the remote peer.

Returns:Credentials dictionary of remote peer.
classmethod srv_getServiceName()
srv_getTransportID()
classmethod srv_getURL()
classmethod srv_msgCreate(msgName)
srv_msgReply(msgObj)
classmethod srv_msgSend(trid, msgObj)
transfer_bulkFromClient(bulkId, token, bulkSize, fileHelper)
transfer_bulkToClient(bulkId, token, fileHelper)
transfer_fromClient(fileId, token, fileSize, fileHelper)
transfer_listBulk(bulkId, token, fileHelper)
transfer_toClient(fileId, token, fileHelper)
types_confirmBulkSubmission = [<type 'list'>]
types_deleteJob = []
types_echo = [<type 'basestring'>]
types_getMaxParametricJobs = []
types_killJob = []
types_ping = []
types_rescheduleJob = []
types_resetJob = []
types_submitJob = [<type 'basestring'>]
DIRAC.WorkloadManagementSystem.Service.JobManagerHandler.initializeJobManagerHandler(serviceInfo)