Skip to content

Commit

Permalink
Fixing jobs view for COMPASS
Browse files Browse the repository at this point in the history
  • Loading branch information
Foorth committed May 30, 2024
1 parent 16e7b45 commit ac71467
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 ac71467

Please sign in to comment.