From 811d5d985782976a7398603c84e6225b9a6207ea Mon Sep 17 00:00:00 2001 From: Dmitry Volodin Date: Wed, 6 May 2020 16:38:58 +0000 Subject: [PATCH] Merge branch 'patch-avs-add-retry-to-escalation' into 'master' Add retry escalation to Escalation limit exceeded. See merge request noc/noc!3581 (cherry picked from commit 1a2e271b796fa640b8de740c7226b2fc69fd341e) ab0d106c Add retry escalation to Escalation limit exceeded. 15cef863 Fix black. --- services/escalator/escalation.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/services/escalator/escalation.py b/services/escalator/escalation.py index 62fbb1ae86..072d4071fa 100644 --- a/services/escalator/escalation.py +++ b/services/escalator/escalation.py @@ -126,6 +126,11 @@ def escalate(alarm_id, escalation_id, escalation_delay, login="correlator", *arg "Escalation limit exceeded (%s/%s). Skipping" % (ae, config.escalator.tt_escalation_limit) ) + Job.retry_after( + get_next_retry(), + "Escalation limit exceeded (%s/%s). Skipping" + % (ae, config.escalator.tt_escalation_limit), + ) return # Check whether consequences has escalations cons_escalated = sorted(alarm.iter_escalated(), key=operator.attrgetter("timestamp")) -- GitLab