Skip to content

Commit

Permalink
ATLAS ElasticSearch instance is available only for ATLAS BigPanDA mon…
Browse files Browse the repository at this point in the history
…itoring
  • Loading branch information
Foorth committed Nov 16, 2022
1 parent 4ef76bd commit fcfafe7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
4 changes: 3 additions & 1 deletion core/templates/taskInfo.html
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,8 @@ <h5>Warning! {{ warning.memoryleaksuspicion.message }}</h5>
<span aria-hidden="true">&times;</span>
</button>
</div>
{% endif %}
{% endif %}+
{% if viewParams.MON_VO == 'ATLAS' %}
{% if info.split_rule %}<p></p>
<div class="callout secondary" data-closable>
<h5>The split rule(s) has been changed for this task: </h5>
Expand All @@ -436,6 +437,7 @@ <h5>The split rule(s) has been changed for this task: </h5>
</ul>
</div>
{% endif %}
{% endif %}
<div id="taskflow" ng-app="taskInfoAppSL" ng-controller="taskflowController">
<div class="card bp-container-simple secondary ng-hide" ng-hide="taskflow.is_hidden">
<div class="card-divider"><p>Task Flow Diagram</p></div>
Expand Down
10 changes: 5 additions & 5 deletions core/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -5835,11 +5835,11 @@ def taskInfo(request, jeditaskid=0):
if settings.DEPLOYMENT == 'ORACLE_ATLAS':
taskrec['slice'] = get_prod_slice_by_taskid(jeditaskid) if taskrec['tasktype'] == 'prod' else None

connection = create_es_connection()
split_rule = get_split_rule_info(connection, jeditaskid)
if len(split_rule) > 0:
info['split_rule'] = {}
info['split_rule']['messages'] = split_rule
connection = create_es_connection()
split_rule = get_split_rule_info(connection, jeditaskid)
if len(split_rule) > 0:
info['split_rule'] = {}
info['split_rule']['messages'] = split_rule


# datetime type -> str in order to avoid encoding errors in template
Expand Down

0 comments on commit fcfafe7

Please sign in to comment.