Commit 1a2e271b authored by Dmitry Volodin's avatar Dmitry Volodin
Browse files

Merge branch 'patch-avs-add-retry-to-escalation' into 'master'

Add retry escalation to Escalation limit exceeded.

See merge request !3581
parents fcb85a9e 670dbd09
Pipeline #22741 passed with stages
in 44 minutes and 22 seconds
......@@ -125,6 +125,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"))
......
Supports Markdown
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