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.34 by spiga, Mon Jun 9 14:40:31 2008 UTC vs.
Revision 1.35 by spiga, Thu Jun 12 18:43:58 2008 UTC

# Line 349 | Line 349 | class DBinterface:
349                      break  
350              # Data alignment
351              jobStatus = str(job.runningJob['statusScheduler'])
352 <            if rForJ.getAttribute('statusScheduler') not in ['Created', 'Submitting', 'Unknown'] and \
353 <                     job.runningJob['statusScheduler'] != 'Cleared':
354 <                job.runningJob['statusScheduler'] = str( rForJ.getAttribute('status') )
355 <                jobStatus = str(job.runningJob['statusScheduler'])
356 <                job.runningJob['status'] = str( rForJ.getAttribute('sched_status') )
357 <
358 <            job.runningJob['destination'] = str( rForJ.getAttribute('site') )
359 <            dest = str(job.runningJob['destination']).split(':')[0]
360 <
361 <            job.runningJob['applicationReturnCode'] = str( rForJ.getAttribute('exe_exit') )
362 <            exe_exit_code = str(job.runningJob['applicationReturnCode'])
363 <
364 <            job.runningJob['wrapperReturnCode'] = str( rForJ.getAttribute('job_exit') )
365 <            job_exit_code = str(job.runningJob['wrapperReturnCode'])
366 <
367 <            #if str( rForJ.getAttribute('resubmit') ).isdigit():
368 <            #    job['submissionNumber'] = int(rForJ.getAttribute('resubmit'))
369 <            #    job.runningJob['submission'] =  int(rForJ.getAttribute('resubmit'))
370 <
371 <            # TODO cleared='0' field, how should it be handled/mapped in BL? #Fabio
352 >            if str(job.runningJob['status']) != 'EE':
353 >                if rForJ.getAttribute('statusScheduler') not in ['Created', 'Submitting', 'Unknown'] and \
354 >                         job.runningJob['statusScheduler'] != 'Cleared':
355 >                    job.runningJob['statusScheduler'] = str( rForJ.getAttribute('status') )
356 >                    jobStatus = str(job.runningJob['statusScheduler'])
357 >                    job.runningJob['status'] = str( rForJ.getAttribute('sched_status') )
358 >          
359 >                job.runningJob['destination'] = str( rForJ.getAttribute('site') )
360 >                dest = str(job.runningJob['destination']).split(':')[0]
361 >          
362 >                job.runningJob['applicationReturnCode'] = str( rForJ.getAttribute('exe_exit') )
363 >                exe_exit_code = str(job.runningJob['applicationReturnCode'])
364 >          
365 >                job.runningJob['wrapperReturnCode'] = str( rForJ.getAttribute('job_exit') )
366 >                job_exit_code = str(job.runningJob['wrapperReturnCode'])
367 >          
368 >                #if str( rForJ.getAttribute('resubmit') ).isdigit():
369 >                #    job['submissionNumber'] = int(rForJ.getAttribute('resubmit'))
370 >                #    job.runningJob['submission'] =  int(rForJ.getAttribute('resubmit'))
371 >          
372 >                # TODO cleared='0' field, how should it be handled/mapped in BL? #Fabio
373  
374          common.bossSession.updateDB( task_new )
375          return

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines