ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CRAB/python/DBinterface.py
(Generate patch)

Comparing COMP/CRAB/python/DBinterface.py (file contents):
Revision 1.66.2.2 by farinafa, Tue Feb 23 16:53:16 2010 UTC vs.
Revision 1.70 by farinafa, Fri Feb 26 17:48:28 2010 UTC

# Line 350 | Line 350 | class DBinterface:
350                  if r.getAttribute('id') in [ id, 'all']:
351                      rForJ = r
352                      break
353 +
354 +            # check if rForJ is None
355 +            if rForJ is None:
356 +                common.logger.debug( "Missing XML element for job %s, skip update status"%str(id) )
357 +                continue
358 +            
359              ## Check the submission number and create new running jobs on the client side
360              if rForJ.getAttribute('resubmit') != 'None' and (rForJ.getAttribute('status') not in ['Cleared','Killed','Done','Done (Failed)','Not Submitted', 'Cancelled by user']) :
361                  if int(job.runningJob['submission']) < int(rForJ.getAttribute('resubmit')) + 1:
# Line 396 | Line 402 | class DBinterface:
402            
403                  # Needed for unique naming of the output.
404                  # GIVES PROBLEMS. FIX in >=2_7_2    
405 <                #job.runningJob['submission'] =  int(rForJ.getAttribute('submission'))
405 >                #job.runningJob['submission'] =  str(rForJ.getAttribute('submission'))
406            
407          common.bossSession.updateDB( task_new )
408          return
# Line 412 | Line 418 | class DBinterface:
418      def updateResubAttribs(self, jobsL):
419          task = self.getTask(jobsL)
420          for j in task.jobs:
421 <            common.bossSession.getRunningInstance(j)
416 <            newArgs = "%d %d"%(j.runningJob['jobId'], j.runningJob['submission'])
421 >            newArgs = "%d %d"%(j['jobId'], j['submissionNumber'])
422              j['arguments'] = newArgs
423              
424          common.bossSession.updateDB(task)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines