This class represents a generic job a distributed system.
|
|
|
QueueJobs(self,
db,
maxjobs,
grid_id,
jobs_at_once=20,
fifo=True,
debug=0) |
source code
|
|
|
|
|
|
|
|
|
PopJob(self)
remove and return new job from queue |
source code
|
|
|
|
|
|
|
AddEnv(self,
var,
val)
Add an environment variable. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
UpdateMetadata(self)
Update metadata information |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SetSimDBKey(self,
key)
Set the unique key for current configuration on production database |
source code
|
|
|
GetSimDBKey(self)
Get the unique key for current configuration from production database |
source code
|
|
|
SetSubmitHost(self,
host)
Set the hostname of the submit node |
source code
|
|
|
GetSubmitHost(self)
Get the hostname of the submit node |
source code
|
|
|
SetHost(self,
host)
Set the hostname of the soaptray server that the job was submitted to |
source code
|
|
|
GetHost(self)
Get the hostname of the soaptray server that the job was submitted to |
source code
|
|
|
SetPort(self,
port)
Set the port number of the submit node |
source code
|
|
|
GetPort(self)
Get the port number of the submit node |
source code
|
|
|
SetURL(self,
url)
Set the hostname of the submit node |
source code
|
|
|
GetURL(self)
Get the hostname of the submit node |
source code
|
|
|
SetStatus(self,
status)
(0=init submission,1=runnig,2=completed,3=failed) |
source code
|
|
|
|
|
|
|
CheckQ(self,
db=None)
Interface: Check status of job/cluster in queuing system. |
source code
|
|
|
CleanQ(self,
jobs=None)
Interface: Check status of job/cluster in queuing system. |
source code
|
|
|
CleanDir(self,
dir)
Remove temporary directory where the current job(s) was submitted
from. |
source code
|
|
|
CheckJobStatus(self,
jobs)
Querie status of job on queue |
source code
|
|
|
|
|
QRemove(self,
jobid)
Interface: Remove active job/cluster from queuing system. |
source code
|
|
|
PostCopy(self,
jobdict,
target_url,
maxtries=4)
Interface: Remove active job/cluster from queuing system. |
source code
|
|
|
Clean(self,
jobdict,
force=False)
Interface: clean submit directory |
source code
|
|
|
|
|
|
|
reset_old_jobs(self,
grid_id,
maxidletime,
maxruntime,
maxsubmittime,
maxcopytime,
maxfailures=10,
maxevicttime=10,
keepalive=14400)
reset status of jobs that where queued but who's status has not
changed in more that maxtime minutes |
source code
|
|
|
|
|
GetFinishedJobs(self,
grid_id,
max_reset=50) |
source code
|
|
|
|
|
GetProcessingJobs(self,
grid_id,
max_reset=50) |
source code
|
|
|
|
|
SelfPickle(self)
Serialize iGrid object and write it to a file |
source code
|
|
|
|
|
GetParam(self,
name)
Returns:
the value bound to parameter given by name, None if parameter has not
been set. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
GetLogs(self,
job)
Read output logs from job |
source code
|
|