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.65 by riahi, Fri Nov 6 14:25:09 2009 UTC vs.
Revision 1.66.2.1 by farinafa, Fri Feb 19 16:43:22 2010 UTC

# Line 394 | Line 394 | class DBinterface:
394  
395                  job.runningJob['state'] = str( rForJ.getAttribute('action') )
396            
397 <            #if str( rForJ.getAttribute('resubmit') ).isdigit():
398 <            #    job['submissionNumber'] = int(rForJ.getAttribute('resubmit'))
399 <            #    job.runningJob['submission'] =  int(rForJ.getAttribute('resubmit'))
397 >                # Needed for unique naming of the output    
398 >                job.runningJob['submission'] =  int(rForJ.getAttribute('submission'))
399            
401            # TODO cleared='0' field, how should it be handled/mapped in BL? #Fabio
402
400          common.bossSession.updateDB( task_new )
401          return
402  
# Line 410 | Line 407 | class DBinterface:
407                  return False
408          return True
409  
410 +    # Method to update arguments w.r.t. resubmission number in order to grant unique output
411 +    def updateResubAttribs(self, jobsL):
412 +        task = self.getTask(jobsL)
413 +        for j in task.jobs:
414 +            common.bossSession.getRunningInstance(j)
415 +            newArgs = "%d %d"%(j.runningJob['jobId'], j.runningJob['submission'])
416 +            j['arguments'] = newArgs
417 +            
418 +        common.bossSession.updateDB(task)
419 +        return
420 +
421  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines