Skip to content

Commit

Permalink
Merge pull request #343 from PanDAWMS/alex_dev
Browse files Browse the repository at this point in the history
Fixing jobs view for COMPASS
  • Loading branch information
Foorth authored May 30, 2024
2 parents d9d2571 + ac71467 commit 649054d
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions core/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1685,8 +1685,15 @@ def jobList(request, mode=None, param=None):
pq_dict = get_panda_queues()
for job in jobsToShow:
if job['computingsite'] in pq_dict:
job['computingsitestatus'] = pq_dict[job['computingsite']]['status']
job['computingsitecomment'] = pq_dict[job['computingsite']]['comment']
if 'status' in pq_dict[job['computingsite']]:
job['computingsitestatus'] = pq_dict[job['computingsite']]['status']
else:
job['computingsitestatus'] = 'UNKNOWN'
if 'comment' in pq_dict[job['computingsite']]:
job['computingsitecomment'] = pq_dict[job['computingsite']]['comment']
else:
job['computingsitecomment'] = 'UNKNOWN'

_logger.debug('Got extra params for sites: {}'.format(time.time() - request.session['req_init_time']))

# checking if log file replica available
Expand Down

0 comments on commit 649054d

Please sign in to comment.