Maintenance Cron: admins see a heartbeat in the top bar when cron is not running, is switched off, or a job failed, is stuck or has fallen behind; the new Cron Watch job emails the admins or set addresses when a problem starts, once a day while it lasts and when it is fixed; health.php answers OK or 503 for an uptime monitor given its key in the address or an X-Health-Key header; the Alerts card sets the emails, sends a test and makes a new key; database 3.7.9 adds the cron alert settings; 26.11.9 changelog entries

This commit is contained in:
johnnyq
2026-11-17 18:43:26 -05:00
parent 4078fa5f25
commit 22f9315c81
14 changed files with 695 additions and 2 deletions

4
db.sql
View File

@@ -3421,6 +3421,10 @@ CREATE TABLE `settings` (
`config_ticket_ordering` tinyint(1) NOT NULL DEFAULT 0,
`config_ticket_moving_columns` tinyint(1) NOT NULL DEFAULT 1,
`config_cron_last_dispatch_at` datetime DEFAULT NULL,
`config_cron_alert_email` tinyint(1) NOT NULL DEFAULT 1,
`config_cron_alert_to` varchar(500) DEFAULT NULL,
`config_cron_health_key` varchar(200) DEFAULT NULL,
`config_cron_alert_state` text DEFAULT NULL,
`config_backup_retention_days` int(11) NOT NULL DEFAULT 30,
`config_backup_retention_count` int(11) NOT NULL DEFAULT 5,
`config_backup_cron_type` varchar(20) NOT NULL DEFAULT 'full',