feat: add monitoring marked articles and retention updates
Frontend CI / Frontend (push) Successful in 7m47s
Backend CI / Backend (push) Successful in 19m26s

This commit is contained in:
2026-06-17 12:48:41 +08:00
parent 9ed857e159
commit 31c4dd9358
40 changed files with 2373 additions and 488 deletions
@@ -0,0 +1,6 @@
UPDATE ops.scheduler_jobs
SET display_name = '监控历史保留清理',
description = '按保留窗口和索引限批删除最近 30 天以前的监控历史数据。',
config = config - 'external_article_mark_retention' - 'clears_manual_mark_attribution',
updated_at = NOW()
WHERE job_key = 'monitoring_retention_cleanup';
@@ -0,0 +1,6 @@
UPDATE ops.scheduler_jobs
SET display_name = '监控历史与外部文章标记清理',
description = '按保留窗口和索引限批删除监控历史;外部文章标记到期 6 个月后删除,并同步清理引用事实归因。',
config = config || '{"external_article_mark_retention":"6 months","clears_manual_mark_attribution":true}'::jsonb,
updated_at = NOW()
WHERE job_key = 'monitoring_retention_cleanup';