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.64 by spiga, Sat Oct 17 14:57:55 2009 UTC vs.
Revision 1.66 by farinafa, Tue Dec 15 13:13:40 2009 UTC

# Line 333 | Line 333 | class DBinterface:
333              newJobs =  len(reportList) - len(task.jobs)
334              if newJobs != 0:
335                  isNew=True  
336 <                if not len(task.jobs):isNew=False
336 >                if len(task.jobs):isNew=False
337                  jobL=[]  
338                  for i in range(1,newJobs+1):
339                      jobL.append(len(task.jobs)+i)
# Line 410 | Line 410 | class DBinterface:
410                  return False
411          return True
412  
413 +    # Method to update arguments w.r.t. resubmission number in order to grant unique output
414 +    def updateResubAttribs(self, jobsL):
415 +        task = self.getTask(jobsL)
416 +        for j in task.jobs:
417 +            common.bossSession.getRunningInstance(j)
418 +            newArgs = "%d %d"%(j.runningJob['jobId'], j.runningJob['submission'])
419 +            j['arguments'] = newArgs
420 +            
421 +        common.bossSession.updateDB(task)
422 +        return
423 +
424  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines