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.22 by spiga, Tue May 6 14:15:41 2008 UTC vs.
Revision 1.23 by farinafa, Fri May 9 13:33:34 2008 UTC

# Line 334 | Line 334 | class DBinterface:
334  
335              # Data alignment
336              jobStatus = str(job.runningJob['statusScheduler'])
337 <            if rForJ.getAttribute('status') not in ['Created', 'Submitting'] and \
337 >            if rForJ.getAttribute('status') not in ['Created', 'Submitting', 'Unknown'] and \
338                       job.runningJob['statusScheduler'] != 'Cleared':
339                  job.runningJob['statusScheduler'] = str( rForJ.getAttribute('status') )
340                  jobStatus = str(job.runningJob['statusScheduler'])
# Line 349 | Line 349 | class DBinterface:
349              job.runningJob['wrapperReturnCode'] = str( rForJ.getAttribute('job_exit') )
350              job_exit_code = str(job.runningJob['wrapperReturnCode'])
351  
352 <            if str( rForJ.getAttribute('resubmit') ).isdigit():
353 <                job['submissionNumber'] = int(rForJ.getAttribute('resubmit'))
352 >            #if str( rForJ.getAttribute('resubmit') ).isdigit():
353 >            #    job['submissionNumber'] = int(rForJ.getAttribute('resubmit'))
354 >            #    job.runningJob['submission'] =  int(rForJ.getAttribute('resubmit'))
355 >
356              # TODO cleared='0' field, how should it be handled/mapped in BL? #Fabio
357  
358          common.bossSession.updateDB( task )

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines