Evita 500 senza SMTP e chiude gli incidenti overflow stale.
Reset password e mail replay usano deliver_mail; il health check overflow risolve tutte le fingerprint del kind, non solo quella sana. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -54,6 +54,8 @@ module Ops
|
||||
def process_finding(finding)
|
||||
if finding.healthy
|
||||
Ops::IncidentRecorder.resolve(fingerprint: finding.fingerprint)
|
||||
# overflow usa fingerprint diverse (at_max / orphan_idle / budget) rispetto al check sano
|
||||
Ops::IncidentRecorder.resolve_kind(finding.kind) if finding.kind == "stream_overflow"
|
||||
else
|
||||
Ops::IncidentRecorder.record(
|
||||
kind: finding.kind,
|
||||
|
||||
@@ -10,6 +10,10 @@ module Ops
|
||||
def resolve(fingerprint:)
|
||||
new.resolve(fingerprint: fingerprint)
|
||||
end
|
||||
|
||||
def resolve_kind(kind)
|
||||
new.resolve_kind(kind)
|
||||
end
|
||||
end
|
||||
|
||||
def record(finding)
|
||||
@@ -49,6 +53,10 @@ module Ops
|
||||
Ops::Incident.open.where(fingerprint: fingerprint).find_each(&:resolve!)
|
||||
end
|
||||
|
||||
def resolve_kind(kind)
|
||||
Ops::Incident.open.where(kind: kind).find_each(&:resolve!)
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def fingerprint_for(finding)
|
||||
|
||||
Reference in New Issue
Block a user