Retention/pruning for schedule_log and ai_usage_log #59
Labels
No labels
area/ai
area/backend
area/frontend
area/infra
area/scheduler
area/wled
good-first-issue
priority/high
priority/low
priority/medium
type/bug
type/chore
type/ci-cd
type/docs
type/feature
type/qa
v1.0.0
v1.1.0
v1.2.0
v2.0.0
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
rbrooks/Iris-WLED#59
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
From the 2026-07-15 review follow-ups.
schedule_loggrows by several rows per day (pushes, retries, failures) andai_usage_logby one per AI request; neither is ever pruned.audit_logis deliberately unpurged per spec §7.3 and can stay that way.schedule_logrows older than a configurable window (default e.g. 365 days) in the existing daily/weekly schedulerai_usage_logrows older than 48h — only a rolling 24h window is ever queried forAI_DAILY_LIMITPicking this up (Wave 2) on
fix/59-retentionoff main. Independent of #46/#49 (touchesscheduler.py+ the log models), so running in parallel with their CI. #9 (year-rollover job) will follow since it also touchesscheduler.py.