Skip to content

Alert before crashing on infra failures instead of failing silently i… - #17

Open
ashleigh-byte wants to merge 2 commits into
Role1776:mainfrom
ashleigh-byte:alert-then-crash-on-infra-failures
Open

Alert before crashing on infra failures instead of failing silently i…#17
ashleigh-byte wants to merge 2 commits into
Role1776:mainfrom
ashleigh-byte:alert-then-crash-on-infra-failures

Conversation

@ashleigh-byte

Copy link
Copy Markdown
Contributor

Speed test, device scan, database, and notifier-delivery failures still crash the process (existing project philosophy: don't silently retry forever), but now make a best-effort attempt to post an alert to the configured notifier first, so the failure is visible without checking server logs. A failure to send that alert itself is logged separately and never masks the original exception.

Validated against real production incidents: a missing sudoers grant, a disk-full DB write, and a DNS outage that took down both the speed test and the notifier webhook at once -- in all three cases the alert attempt fails alongside the primary error, and the original exception still propagates and crashes the process rather than being swallowed.

The existing AI-backend-failure handling (falls back to plain text, does not crash) is untouched -- that's a deliberately different philosophy: an AI hiccup degrades gracefully, an infra failure is a real bug in netmon and should be loud.

…n logs

Speed test, device scan, database, and notifier-delivery failures still
crash the process (existing project philosophy: don't silently retry
forever), but now make a best-effort attempt to post an alert to the
configured notifier first, so the failure is visible without checking
server logs. A failure to send that alert itself is logged separately
and never masks the original exception.

Validated against real production incidents: a missing sudoers grant, a
disk-full DB write, and a DNS outage that took down both the speed test
and the notifier webhook at once -- in all three cases the alert attempt
fails alongside the primary error, and the original exception still
propagates and crashes the process rather than being swallowed.

The existing AI-backend-failure handling (falls back to plain text,
does not crash) is untouched -- that's a deliberately different
philosophy: an AI hiccup degrades gracefully, an infra failure is a real
bug in netmon and should be loud.
Adds a Reliability section explaining that infra failures (speed test,
device scan, database, notifier) post a best-effort alert then crash
rather than silently retrying, and contrasts this with the existing
graceful-degradation behavior for AI backend failures specifically.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant