Package iceprod :: Package server :: Module queue :: Class i3ProdQueue
[hide private]
[frames] | no frames]

Class i3ProdQueue

source code

This class interfaces IceTray with several queuing systems and is used for simplifying the submission and monitoring of jobs. Additionally, the information for jobs submitted can be entered into a database through the class db.ConfigDB

Instance Methods [hide private]
 
__init__(self, config) source code
 
SetConfigDB(self, db) source code
 
SetMonitorDB(self, db) source code
 
SetGridId(self, grid_id) source code
 
SetJobsAtOnce(self, njobs) source code
 
CleanDir(self, dir)
Remove temporary directory where the current job(s) was submitted from.
source code
 
SetQueueSize(self, maxsize) source code
 
SetSubmitHost(self, submithost) source code
 
SetSubmitter(self, submitter) source code
 
SetInstitution(self, institution) source code
 
MakeDir(self, dir)
Create a temporary directory where the current job(s) will be submitted from (or will run in depending on the queueing system)
source code
 
EnQueue(self, steering)
Insert IceTrayConfig configuration to the database
source code
 
mkdataset(self, start=0, end=0, dataset=0)
Create a list of 'size' i3Job objects
source code
 
Submit(self, steering=None, production=False, first=0, last=0, npid=None)
Submit and monitor jobs
source code
 
check_task_dependencies(self, job, steering)
Check that dependencies are sane
source code
 
GetIPModules(self, steering, destination, cache=False, wgetrcoptions=[])
Fetch any files from svn which are needed by i3.IceTray
source code
 
GetServerURL(self) source code
 
GetPlatform(self)
Returns: a string representing the platform of the current system in the IceTray format.
source code
 
SetRootDir(self, rootdir)
Set the root directory where the iceprod software is stored
source code
 
GetRootDir(self)
Get the root directory where the iceprod software is stored
source code
 
AddDefaultArchive(self, archive)
Set the list of default archives that should be included with each submission.
source code
 
MakeMetadata(self, difplus, run_id, simcat='')
Log information about this dataset catalog dataset.
source code
 
CheckProxy(self, proxy, runtime)
Check validity of certificate proxy for gridFTP
source code
 
MakeProxy(self, proxy, runtime, passwd)
Check validity of certificate proxy for gridFTP
source code
Method Details [hide private]

EnQueue(self, steering)

source code 

Insert IceTrayConfig configuration to the database

Parameters:
  • steering

GetPlatform(self)

source code 
Returns:
a string representing the platform of the current system in the IceTray format.

SetRootDir(self, rootdir)

source code 

Set the root directory where the iceprod software is stored

Parameters:
  • rootdir - directory path

AddDefaultArchive(self, archive)

source code 

Set the list of default archives that should be included with each submission.

Parameters:
  • archive - archive or file needed by job (to be shipped with job)

MakeMetadata(self, difplus, run_id, simcat='')

source code 

Log information about this dataset catalog dataset.

Parameters:
  • run_id - primary key for this job on configuration database

CheckProxy(self, proxy, runtime)

source code 

Check validity of certificate proxy for gridFTP

Parameters:
  • proxy - path to proxy certificate
  • runtime - minimum validity time left on proxy

MakeProxy(self, proxy, runtime, passwd)

source code 

Check validity of certificate proxy for gridFTP

Parameters:
  • proxy - path to proxy certificate
  • runtime - minimum validity time left on proxy