Conversation
Once a day, post one table to the server alerts channel listing every site that hit the daily failed backup limit in the last 24h. It uses the same limit that triggers the "backup attempts failed" email to the team. Each row has the site (linked to its failed backups), server, plan (dedicated or monthly price), team email, failure count and last successful backup. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
regdocs
requested review from
adityahase,
balamurali27 and
tanmoysrt
as code owners
September 25, 2026 11:04
Contributor
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #7577 +/- ##
============================================
- Coverage 86.75% 63.04% -23.71%
============================================
Files 157 1082 +925
Lines 29602 105450 +75848
Branches 1976 1977 +1
============================================
+ Hits 25681 66485 +40804
- Misses 3864 38908 +35044
Partials 57 57
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Contributor
|
Tick the box to add this pull request to the merge queue (same as
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a daily Raven alert, posted to the server alerts channel, listing every site that hit the daily failed backup limit in the last 24h.
This is the same limit (
max_failed_backup_attempts_in_a_day, default 6) that already emails the team. Right now only the customer finds out when a site's backups keep failing. With this, we see it too, in one message a day instead of one per site.Message
Sites With All Backup Attempts Failed - 2
Sites with 6 or more failed backups in the last 24h
Changes
server_monitoring.py: addsalert_on_sites_with_all_backup_attempts_failed(), which runs on thedailyscheduler.site_backup.py: moves the limit lookup intoget_max_failed_backup_attempts(), so the email check and the digest share it.test_server_monitoring.py.🤖 Generated with Claude Code