minos::MinosRSMJobAnalyser::MinosRSMJobAnalyser Class Reference

List of all members.

Public Member Functions

def __init__
def Apply


Detailed Description

Job termination analysis object. Based on output returned and
past history decides what to do next.

This class inherits from GBSJobAnalyser and adds support for the
retry request NEW_SEED by renaming the job to the next free subrun
number for the job's run number.

Definition at line 3 of file MinosRSMJobAnalyser.py.


Member Function Documentation

def minos::MinosRSMJobAnalyser::MinosRSMJobAnalyser::__init__ (   self,
  name,
  parent,
  model,
  model_args 
)

Definition at line 12 of file MinosRSMJobAnalyser.py.

00012                                                    :
00013         GBSJobAnalyser.__init__(self,name,parent,model,model_args)
00014 
    def  Apply(self):

def minos::MinosRSMJobAnalyser::MinosRSMJobAnalyser::Apply (   self  ) 

Apply results of analysis to client job dealing with NEW_SEED request.

Definition at line 15 of file MinosRSMJobAnalyser.py.

00015                     :
00016 
00017         """Apply results of analysis to client job dealing with NEW_SEED request."""
00018 
00019         job = self.GetJob()
00020 
00021         if not job or self.GetRetryArgs() != "NEW_SEED":
00022             GBSJobAnalyser.Apply(self)
00023             return
00024         run        = job.GetRun()
00025         subrun     = job.GetSubrun()
00026         task       = job.GetParent()
00027         job_list   = task.GetJobs("job_%8.8d_.*" % run)
00028         max_subrun = 0
00029         for j_name,j in job_list.iteritems(): max_subrun = max(max_subrun,j.GetSubrun())
00030         max_subrun += 1
00031         task.RenameJob(job.GetName(),"job_%8.8d_%4.4d" % (run,max_subrun))
00032         GBSJobAnalyser.Apply(self)
00033         jobTryDir = job._GetTryOutputDir()
00034         gbs_log_file_spec = jobTryDir + "/" + job._GetGbsLogFileName()
00035         f = open(gbs_log_file_spec,'a')
00036         f.write("    Rename subrun %d - > %d" % (subrun,max_subrun))
00037         f.close()
00038 


The documentation for this class was generated from the following file:
Generated on Mon Feb 18 14:42:02 2008 for gbs by  doxygen 1.5.4