346 |
|
for r in reportList: |
347 |
|
if r.getAttribute('id') in [ id, 'all']: |
348 |
|
rForJ = r |
349 |
< |
break |
349 |
> |
break |
350 |
> |
|
351 |
|
# Data alignment |
351 |
– |
jobStatus = str(job.runningJob['statusScheduler']) |
352 |
|
if str(job.runningJob['status']) != 'EE': |
353 |
< |
if rForJ.getAttribute('statusScheduler') not in ['Created', 'Submitting', 'Unknown'] and \ |
354 |
< |
job.runningJob['statusScheduler'] != 'Cleared': |
353 |
> |
if rForJ.getAttribute('status') not in ['Created', 'Submitting', 'Unknown'] and \ |
354 |
> |
job.runningJob['statusScheduler'] != 'Cleared' and \ |
355 |
> |
not (job.runningJob['statusScheduler'] == 'Killing' and rForJ.getAttribute('statusScheduler')!='Killed'): |
356 |
> |
# update the status |
357 |
> |
common.logger.debug(3,"Updating DB status for job: " + str(id) + " @: " \ |
358 |
> |
+ str(rForJ.getAttribute('status')) ) |
359 |
|
job.runningJob['statusScheduler'] = str( rForJ.getAttribute('status') ) |
356 |
– |
jobStatus = str(job.runningJob['statusScheduler']) |
360 |
|
job.runningJob['status'] = str( rForJ.getAttribute('sched_status') ) |
361 |
|
|
362 |
|
job.runningJob['destination'] = str( rForJ.getAttribute('site') ) |