Commit ab0d106c authored by Andrey Vertiprahov's avatar Andrey Vertiprahov
Browse files

Add retry escalation to Escalation limit exceeded.

parent fcb85a9e
Pipeline #22736 failed with stages
in 24 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