Commit 736b67bf authored by Leonidas Poulopoulos's avatar Leonidas Poulopoulos

Addressed issue where rule with ERROR status kept on being checked. Closes #2322

parent b17c9716
......@@ -123,8 +123,9 @@ def check_sync(route_name=None, selected_routes = []):
routes = routes.filter(name=route_name)
for route in routes:
if route.has_expired() and (route.status != 'EXPIRED' and route.status != 'ADMININACTIVE' and route.status != 'INACTIVE'):
logger.info('Expiring route %s' %route.name)
subtask(delete).delay(route, reason="EXPIRED")
if route.status != 'ERROR':
logger.info('Expiring %s route %s' %(route.status, route.name))
subtask(delete).delay(route, reason="EXPIRED")
# elif route.has_expired() and (route.status == 'ADMININACTIVE' or route.status == 'INACTIVE'):
# route.status = 'EXPIRED'
# route.response = 'Rule Expired'
......
......@@ -290,8 +290,12 @@ function delete_route(route){
{% ifequal route.status 'OUTOFSYNC' %}
<a href="{% url edit-route route.name %}" class="edit_button" id="edit_button_{{route.pk}}">ReSync</a>
{% else %}
{% ifequal route.status 'ERROR' %}
<a href="{% url edit-route route.name %}" class="edit_button" id="edit_button_{{route.pk}}">Fix it!</a>
{% else %}
-
{% endifequal %}
{% endifequal %}
{% endif %}
{% endifequal %}
</td>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment