fix: host_silence proactive notify when event is None
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -114,6 +114,13 @@ def dispatch_host_silence_notifications(db: Session, results: list[HostSilenceSc
|
||||
for item in results:
|
||||
if not item.created:
|
||||
continue
|
||||
notify_problem(item.problem, event=None, db=db)
|
||||
sent += 1
|
||||
try:
|
||||
notify_problem(item.problem, event=None, db=db)
|
||||
sent += 1
|
||||
except Exception:
|
||||
logger.exception(
|
||||
"host_silence notify failed host=%s problem_id=%s",
|
||||
item.hostname,
|
||||
item.problem.id,
|
||||
)
|
||||
return sent
|
||||
|
||||
Reference in New Issue
Block a user